/* 合并后的CSS文件，重复样式以11.css为准 */
@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #334155;
    overflow-x: hidden;
}

/* 图片容器 - 占据上半部分 */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: url('/image/b2.jpg') center top / cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* 渐变过渡层 - 放置在图片底部 */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #f8fafc);  
    z-index: 1;
}

/* 内容容器 */
.content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}

.logo img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    height: 79px;
    width: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: white;
    font-weight: 500;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn i {
    font-size: 14px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-box {
    width: 65%;
    max-width: 750px;
    margin-bottom: 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 30px;
    border-radius: 35px;
    border: none;
    font-size: 17px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.98);
    padding-left: 60px;
    transition: all 0.3s;
    color: #334155;
    font-weight: 500;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    background: white;
}

.sites-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

/*分类底框*/
.sites-section {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(241, 245, 249, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-header {
    display: flex;
	justify-content: left;
    align-items: flex-end;  /* 垂直方向底部对齐 */
	margin-bottom: 8px;   /* 下边距 */
	
}

.section-header-t {
    display: flex;
	justify-content: left;
    align-items: flex-end;
	margin-bottom: 20px;
    padding-bottom: 8px;  /*内边距底*/
	border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
	margin-bottom: 5px;   /*边距底部*/
}

.org-badge {
    background: #3b82f6;
    color: white;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px;
}

/*快捷方式白底样式*/
.site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px 10px;   /* 上下内边距，间接调整高度 */
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: rgba(0,0,0,0);
    box-shadow: 0 3px 10px rgba(0,0,0,0);
    border: 1px solid rgba(0,0,0,0);
    backdrop-filter: blur(8px);
}

.site-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: rgba(226, 232, 240, 0.8);
    z-index: 10;
}

/*快捷方式网站标志样式*/
.site-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: all 0.3s;
}

.site-item:hover .site-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.work-icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.site-title {
    font-size: 14px;
    color: #1e293b;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.4;
    font-weight: 600;
}

.site-org {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* 菜单按钮样式 - 默认隐藏 */
.menu-trigger {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    background: rgba(0,0,0,0);
    box-shadow: 0 2px 5px rgba(0,0,0,0);
    z-index: 5;
}

/* 鼠标悬停时显示菜单按钮 */
.site-item:hover .menu-trigger {
    display: flex;
}

.menu-trigger:hover {
    background: rgba(0,0,0,0);
    color: #3b82f6;
    box-shadow: 0 3px 8px rgba(0,0,0,0);
}

/* 操作菜单样式 */
.actions-menu {
    position: absolute;
    top: 38px;
    right: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;      /* 确保操作菜单在最上层 */
    overflow: hidden;
    width: 110px;
    animation: fadeIn 0.2s ease-out;
}

.actions-menu.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-btn {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.action-btn:hover {
    background: #f1f5f9;
}

.action-btn.edit:hover {
    color: #3b82f6;
}

.action-btn.delete:hover {
    color: #ef4444;
}

.action-btn i {
    width: 20px;
    text-align: center;
}

.add-site-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 110px;
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
    color: #94a3b8;
    font-weight: 600;
    gap: 8px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.add-site-btn i {
    font-size: 24px;
    color: #94a3b8;
}

.add-site-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
   /*  backdrop-filter: blur(5px); 背景模糊效果 */
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    padding-right: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #475569;
    font-size: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s;
    color: #334155;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
    background: white;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 26px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    padding: 12px 26px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 18px 30px;
    border-radius: 14px;
    background: #10b981;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 16px;
    animation: slideIn 0.3s ease-out;
    transform: translateX(0);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

.notification.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}

/* 页脚样式 */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #64748b;
    font-size: 14px;
  /*  border-top: 1px solid #e2e8f0;  顶部线条 */
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.pass {        
    text-align: center;
    color: #ffffff;
    font-size: 20px;
}

.passa {
    color: #ffffff;
    font-size: 20px;
    text-decoration: underline;    
}

.passa:hover {	
    color: #ffffff;
	font-size: 20px;
    text-decoration: none;
}

/* 列表项样式 */
li {
	margin: 10px;
}

/* 链接样式 */
a {
	color: black;
	text-decoration: none;
	font-size: 16px;
	transition: font-size 0.3s ease;
}

/* 鼠标悬停效果 */
a:hover {
	font-size: 16px;
	color:#3b82f6;
	text-decoration: underline;
}

/* 添加按钮样式 */
.section-header >div {
    cursor: pointer;
    color: #3b82f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 10px;
}

.section-header >div:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

h4 {
    color: #3b82f6;
    margin-top:5px;
    margin-bottom:5px;
    cursor: pointer;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-item i {
    color: #3b82f6;
}

.no-favicon {
    display: none;
}

/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 350px;
    max-width: 90%;
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.login-modal-header {
    background: #4285f4;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.login-modal-body {
    padding: 20px;
    color: #555;
    line-height: 1.6;
}

.login-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-modal-secondary {
    background: #e0e0e0;
    color: #444;
    border: none;
}

.btn-modal-secondary:hover {
    background: #d0d0d0;
}

.btn-modal-primary {
    background: #4285f4;
    color: white;
    border: none;
}

.btn-modal-primary:hover {
    background: #3367d6;
}

/* 资讯模块样式 */
.news-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.news-header {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.news-header h2 {
    margin: 0;
    font-size: 1.4rem;
    flex: 1;
}

.news-header i {
    font-size: 1.6rem;
    margin-right: 10px;
}

.news-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8f9ff;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #333;
    display: flex;
    align-items: center;
}

.news-title i {
    margin-right: 8px;
    color: #4a69bd;
}

.news-content {
    color: #444;
    line-height: 1.6;
}

.news-content p {
    margin: 10px 0;
}

.news-content.expanded {
    max-height: 1000px;
    padding: 10px;
    border-left: 3px solid #4a69bd;
    margin-top: 10px;
    border-radius: 0 0 4px 4px;
}

.news-meta {
    display: flex;
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
}

.news-date {
    margin-right: 15px;
}

.news-views {
    display: flex;
    align-items: center;
}

.news-views i {
    margin-right: 4px;
}

.no-news {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 分类筛选样式 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px 0;
	justify-content: center;
}

.category-tab {
    padding: 8px 15px;
    background-color: #f0f4ff;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: 1px solid #d1e0ff;
}

.category-tab:hover {
    background-color: #dbe7ff;
}

.category-tab.active {
    background-color: #4a69bd;
    color: white;
    border-color: #3a59ad;
}

.category-section {
    display: block;
    margin-bottom: 25px;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-list li {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.site-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.site-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.favicon-container {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.globe-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f0f4ff;
    border-radius: 4px;
    color: #4a69bd;
}

.favicon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .site-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .site-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-box {
        width: 90%;
    }
    
    .sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .site-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .site-title {
        font-size: 13px;
    }
    
    .actions-menu {
        width: 100px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .logo img {
        width: 280px;
        height: auto;
    }

    .site-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .category-tab {
        padding: 5px 10px;
        font-size: 0.85rem;

    }
}

@media (max-width: 576px) {
    .site-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }        
    .category-tabs {
        gap: 8px;
    }
}