/*
Theme Name: 江湖判官
Theme URI: https://jianghulab.com
Author: 江湖科技
Description: 江湖判官企业官网主题 - 黑色科技风
Version: 3.0.0
License: Proprietary
Text Domain: jianghu
*/

/* ============================================
   CSS变量 - 黑色科技风
   ============================================ */
:root {
    /* 主色调 - 黑色系 */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-subtle: #0f0f0f;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-hint: rgba(255, 255, 255, 0.3);
    
    /* 强调色 */
    --accent: #C9A961;
    --accent-hover: #D4B872;
    --accent-glow: rgba(201, 169, 97, 0.2);
    
    /* 边框 */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============================================
   基础重置
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================
   容器
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   导航栏 - 已移至 header.php 内联样式
   ============================================ */
/* 注意：header样式在 header.php 中定义，避免覆盖 */

/* ============================================
   按钮
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* ============================================
   移动端菜单
   ============================================ */
.menu-toggle {
    display: none;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* 移动端菜单样式已移至 header.php 内联样式 */

/* ============================================
   Hero区域
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Section通用
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 560px;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   产品卡片
   ============================================ */
.products-grid {
    display: grid;
    gap: 24px;
}

.products-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.product-card-image {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-subtle);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    z-index: 2;
}

.product-badge.hot {
    background: var(--accent);
    color: #000;
}

.product-badge.new {
    background: #22C55E;
    color: #fff;
}

.product-badge.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.product-card-body {
    padding: 28px;
}

.product-card-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-card-body h3 a {
    color: inherit;
}

.product-card-body h3 a:hover {
    color: var(--accent);
}

.product-card-body > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 14px;
    color: var(--text-muted);
}

.product-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price.free {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

/* 小卡片 */
.product-card.small .product-card-image {
    aspect-ratio: 1;
}

.product-card.small .product-card-body {
    padding: 20px;
}

.product-card.small .product-card-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-card.small .product-card-body > p {
    display: none;
}

.product-card.small .product-card-footer {
    padding-top: 16px;
}

.product-card.small .product-price .amount {
    font-size: 22px;
}

/* ============================================
   特性展示
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   CTA区域
   ============================================ */
.cta-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content h3 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 600;
}

.cta-content p {
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    padding: 60px 0 30px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 13px;
    color: var(--text-hint);
}

.copyright a {
    color: var(--text-muted);
}

.copyright a:hover {
    color: var(--text-primary);
}

.beian {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-hint);
}

.beian a {
    color: var(--text-hint);
}

.beian a:hover {
    color: var(--text-muted);
}

/* ============================================
   页面头部
   ============================================ */
.page-hero {
    padding: 160px 0 80px;
    background: var(--bg-subtle);
    text-align: center;
}

.page-hero .section-title {
    font-size: clamp(32px, 5vw, 48px);
}

/* ============================================
   动画
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .products-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .products-grid.cols-3,
    .products-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .feature-item {
        padding: 24px 16px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .beian {
        flex-direction: column;
        gap: 8px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 140px 0 60px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}
