/* =============================================
   黑猫SEO - 科技感深色主题
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary: #a855f7;
    --accent: #ff6b35;
    --bg-deep: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f6f8;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-glow: rgba(0, 212, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.06) 100%);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   顶部导航 - 玻璃拟态
   ============================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-url {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 4px;
    margin: 0 auto;
}

.nav-link {
    padding: 9px 20px;
    color: #1f2937;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.06);
}

.admin-btn {
    padding: 9px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.admin-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* =============================================
   快捷入口栏
   ============================================= */
.quick-links {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 14px 0;
}

.quick-links .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.quick-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 6px 22px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 500;
}

.quick-item:last-child {
    border-right: none;
}

.quick-item:hover {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.quick-item span {
    font-size: 17px;
    display: inline-flex;
    align-items: center;
}

/* =============================================
   广告位区域
   ============================================= */
.ad-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.ad-slot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ad-slot:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.08);
}

.ad-slot:hover::before {
    opacity: 1;
}

.ad-slot-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.ad-slot-size {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* =============================================
   公告栏
   ============================================= */
.notice-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    position: relative;
    text-align: center;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    color: #ff3b3b;
    line-height: 1.8;
    text-align: center;
}

.notice-text strong {
    display: block;
    color: #ff3b3b;
    font-size: 13px;
    font-weight: 700;
}

.notice-text span {
    display: block;
    color: #ff5252;
    font-size: 12px;
    margin-top: 2px;
}

.notice-time {
    color: #ff3b3b;
    font-size: 11px;
    flex-shrink: 0;
}

.notice-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notice-close:hover {
    background: rgba(255, 71, 87, 0.15);
    color: #ff6b81;
}

/* =============================================
   分类区块标题
   ============================================= */
.category-section {
    padding: 50px 0 10px;
}

.category-section:first-of-type {
    padding-top: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.category-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}

.category-title-wrap {
    flex: 1;
}

.category-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.category-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   产品网格
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    display: block;
    color: inherit;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-header {
    padding: 22px 18px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.product-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-card) 100%);
}

.product-body {
    padding: 18px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* =============================================
   产品导航列表
   ============================================= */
.link-section {
    background: #f8f9fa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 35px 0;
    margin-top: 30px;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 24px;
}

.link-list li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

.link-list li a {
    color: #3498db;
    transition: all 0.3s ease;
}

.link-list li a:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* =============================================
   页脚
   ============================================= */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer .footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer .footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer .tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00d4ff, #0088cc);
    color: #fff;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.footer .tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.35);
}

.footer .tg-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer .tg-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.footer .footer-uptime {
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ad-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 15px;
        gap: 10px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 2px;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 7px 12px;
        font-size: 12px;
    }

    .admin-btn {
        display: none;
    }

    .quick-links .container {
        flex-wrap: wrap;
        gap: 0;
    }

    .quick-item {
        border-right: none;
        padding: 6px 14px;
    }

    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notice-content {
        flex-direction: column;
        align-items: center;
        padding: 0 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-title::after {
        display: none;
    }
}
