/* ==========================================
   指尖网络 - 官网系统样式
   终极霸气 · 高级交互版
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f0d080;
    --gold-dark: #b8962e;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --text-light: #f5f0eb;
    --text-muted: #a09890;
    --bg-warm: #f5f0eb;
    --bg-white: #ffffff;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(212, 175, 55, 0.25);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm);
    color: #1a1a1a;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 0.8s ease forwards;
}
@keyframes pageFadeIn {
    to { opacity: 1; }
}

/* ===== 滚动进度条 ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 99999;
    transition: width 0.1s;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.20);
    padding: 0.6rem 0;
    transition: background 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.96) !important;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #fff !important;
    position: relative;
}
.navbar-brand small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-top: -4px;
    text-transform: uppercase;
}
.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    color: rgba(255,255,255,0.70) !important;
    font-weight: 500;
    padding: 0.4rem 1.4rem;
    border-radius: 40px;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}
.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(212, 175, 55, 0.08);
}

/* ===== 页面英雄区 ===== */
.page-hero {
    position: relative;
    padding: 100px 0 70px;
    background: radial-gradient(ellipse at 30% 20%, #2a241f 0%, #0a0a0a 100%);
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.page-hero .hero-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.1) rotate(3deg); }
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 4.2rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.10);
}
.page-hero h1 .gold {
    background: linear-gradient(135deg, #f5e6d3 0%, var(--gold) 30%, var(--gold-light) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero .subtitle {
    font-size: 1.2rem;
    color: var(--gold-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 300;
}
.page-hero .desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0.8rem auto 0;
    font-weight: 300;
}

/* ===== 首页全屏英雄 ===== */
.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 50%, #1a1410 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hero-fullscreen .hero-content {
    position: relative;
    z-index: 2;
}
.hero-fullscreen .hero-title {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 6rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f5e6d3 0%, var(--gold) 30%, var(--gold-light) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.15);
    margin-bottom: 0.2rem;
}
.hero-fullscreen .hero-sub {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 8px;
    text-transform: uppercase;
}
.hero-fullscreen .hero-desc {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.60);
    max-width: 600px;
    margin: 1rem auto 0;
    font-weight: 300;
}
.hero-fullscreen .btn-hero {
    background: var(--gold);
    border: none;
    border-radius: 60px;
    padding: 1rem 3.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a0a0a;
    transition: all 0.4s;
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.30);
    position: relative;
    overflow: hidden;
}
.hero-fullscreen .btn-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}
.hero-fullscreen .btn-hero:hover::before {
    transform: rotate(45deg) translateX(100%);
}
.hero-fullscreen .btn-hero:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 60px rgba(212, 175, 55, 0.50);
    background: var(--gold-light);
    color: #0a0a0a;
}

/* ===== 通用卡片 + 3D倾斜 ===== */
.card,
.site-card,
.case-item,
.qq-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 800px;
}
.card:hover,
.site-card:hover,
.case-item:hover,
.qq-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

/* ===== 按钮水波纹容器 ===== */
.btn {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ===== 旗下网站卡片 ===== */
.site-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.10);
    box-shadow: var(--shadow-soft);
    max-width: 270px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s;
}
.site-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold-light));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.site-card:hover::after {
    opacity: 1;
}
.site-card h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}
.site-card .text-muted {
    font-size: 0.85rem;
    color: #777 !important;
    margin-bottom: 0.8rem;
}

/* ===== 团队头像 ===== */
.team-avatar-wrapper {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border: 4px solid var(--gold);
    transition: transform 0.4s, box-shadow 0.4s;
    background: #f0ece6;
}
.team-avatar-wrapper:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.30);
}
.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 新闻列表 ===== */
.news-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1rem 1.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}
.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.news-item:hover::before {
    opacity: 1;
}
.news-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    transform: translateX(8px);
}

/* ===== 底部 ===== */
footer {
    background: #0a0a0a !important;
    color: rgba(255,255,255,0.60);
    border-top: 1px solid rgba(212, 175, 55, 0.10);
}
footer a {
    color: var(--gold-light);
}

/* ==========================================
   后台管理 - 纯黑左侧菜单
   ========================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: #000000;
    padding: 2rem 0;
    flex-shrink: 0;
}

.admin-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.5rem 2rem;
}
.admin-sidebar .brand .logo-zj {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: -1px;
    line-height: 1;
    font-family: var(--font-sans);
}
.admin-sidebar .brand .brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 1.2rem;
    color: #ffffff;
}
.admin-sidebar .brand .brand-text small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #cccccc;
    margin-top: 1px;
}

.admin-sidebar .nav-link {
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    font-weight: 450;
    transition: all 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
}
.admin-sidebar .nav-link span {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}
.admin-sidebar .nav-link span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.admin-sidebar .nav-link:hover span::after,
.admin-sidebar .nav-link.active span::after {
    width: 100%;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    background: var(--bg-warm);
}
.admin-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}
.admin-card h5 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.admin-topbar {
    background: var(--bg-white);
    padding: 0.8rem 2rem;
    margin: -2rem -2.5rem 2rem -2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.topbar-left .welcome {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.topbar-right .clock {
    font-size: 0.9rem;
    color: #666;
}
.topbar-right .daynight {
    font-size: 0.85rem;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    background: #f0ece6;
    color: #5a4a3a;
}
.topbar-right .daynight.day {
    background: #fef9e7;
    color: #b7950b;
}
.topbar-right .daynight.night {
    background: #e8e8ec;
    color: #2c3e50;
}
.topbar-right .logout-btn {
    border-radius: 30px;
    padding: 0.2rem 1.2rem;
    font-size: 0.85rem;
    border-color: #c0392b;
    color: #c0392b;
}
.topbar-right .logout-btn:hover {
    background: #c0392b;
    color: #fff;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: 100%;
}
.toast-message {
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-message.success { background: #27ae60; }
.toast-message.error { background: #e74c3c; }
.toast-message.info { background: #3498db; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-message.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}
@keyframes slideOutRight {
    to { transform: translateX(100%); opacity: 0; }
}

.news-form-wrapper {
    background: #fcfaf8;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.04);
}
.news-form-wrapper h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.news-form .form-control {
    border: 1px solid #e0d6cc;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    background: #fff;
}
.news-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ===== 新闻表格优化 ===== */
.news-table th,
.news-table td {
    vertical-align: middle;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
}
.news-table td:first-child,
.news-table th:first-child {
    text-align: center;
}
.news-table td:nth-child(2),
.news-table th:nth-child(2) {
    text-align: center;
}
.news-table td:nth-child(3) {
    white-space: normal;
    word-break: break-word;
    max-width: 300px;
}
.news-table td:last-child {
    white-space: nowrap;
    text-align: center;
}
.news-table .btn-sm {
    margin: 0 2px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
}
.news-table .badge {
    font-weight: 400;
}

/* ===== QQ群卡片 - 增强视觉层次 ===== */
.qq-card-enhanced {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.20);
}
.qq-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}

.qq-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.40) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    transition: background 0.3s;
}
.qq-card-enhanced:hover .qq-card-overlay {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.60) 0%, rgba(10, 10, 10, 0.25) 100%);
}

.qq-card-content {
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.qq-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.qq-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.qq-card-header h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 0.5px;
}

.qq-card-body {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.2rem;
}
.qq-number-label {
    background: rgba(212, 175, 55, 0.25);
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.30);
}
.qq-number {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.qq-card-footer {
    margin-top: 0.4rem;
}
.btn-gold {
    background: var(--gold);
    border: none;
    border-radius: 40px;
    padding: 0.4rem 2rem;
    font-weight: 600;
    color: #0a0a0a;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.30);
    font-size: 0.9rem;
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: scale(1.05);
    color: #0a0a0a;
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.50);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0;
    }
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-content {
        padding: 1.5rem;
    }
    .admin-topbar {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 0.6rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .topbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .hero-fullscreen .hero-title {
        font-size: 3.6rem;
    }
    .hero-fullscreen .hero-sub {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    .hero-fullscreen .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .hero-fullscreen .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .page-hero h1 {
        font-size: 2.8rem;
    }
    .page-hero .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .page-hero .desc {
        font-size: 0.95rem;
    }
    .site-card {
        max-width: 100%;
    }
    .news-table td:nth-child(3) {
        max-width: 150px;
    }
    .qq-card-enhanced {
        min-height: 180px;
    }
    .qq-card-header h5 {
        font-size: 1.2rem;
    }
    .qq-number {
        font-size: 1rem;
    }
    .btn-gold {
        padding: 0.3rem 1.5rem;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .hero-fullscreen .hero-title {
        font-size: 2.8rem;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .news-table td:nth-child(3) {
        max-width: 100px;
    }
}