/*
Theme Name: Yuzhiku Theme
Theme URI: https://example.com/yuzhiku
Author: Antigravity
Author URI: https://example.com
Description: A premium WordPress theme for Yu Zhi Ku, featuring a modern and responsive design.
Version: 1.0.0
Text Domain: yuzhiku
*/

:root {
    /* Core Branding */
    --brand-teal: #0f766e;
    --brand-teal-light: #ccfbf1;
    --brand-teal-lighter: #f0fdfa;
    --brand-orange: #ea580c;
    --brand-orange-light: #fed7aa;
    --brand-orange-lighter: #fff7ed;
    --brand-blue: #2563eb;
    --brand-blue-light: #eff6ff;

    /* Semantic Colors */
    --primary-color: var(--brand-teal);
    --secondary-color: var(--brand-teal-light);
    --accent-color: var(--brand-orange);
    --success: #10b981;
    --danger: #ef4444;

    /* Neutral Palette */
    --text-dark: #111827;
    --text-gray: #4b5563;
    --text-muted: #94a3b8;
    --bg-light: #ffffff;
    --bg-gray: #f9fafb;
    --border-base: #e5e7eb;

    /* Design Specs */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --container-max: 1400px;
}

/* Base Badge Style */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.badge-teal { background: var(--brand-teal-light); color: var(--brand-teal); }
.badge-orange { background: var(--brand-orange-light); color: var(--brand-orange); }
.badge-blue { background: var(--brand-blue-light); color: var(--brand-blue); }

/* Section Heading */
.section-headline {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtext {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 102, 0.2);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Navigation & Header (Refined) */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.custom-nav-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-item-group {
    position: relative !important;
    display: inline-block !important;
}

/* Primary Link Style */
.nav-link-top {
    display: flex !important;
    align-items: center !important;
    line-height: 80px !important;
    padding: 0 15px !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    /* NO STACKING */
    transition: color 0.2s !important;
}

.nav-link-top:hover {
    color: var(--primary-color) !important;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    fill: currentColor;
    transition: transform 0.2s;
}

.menu-item-group:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Dropdown Container */
.sub-menu-dropdown {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    background: #ffffff !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    padding: 10px 0 !important;
    z-index: 10000 !important;
}

/* Show Dropdown on Hover */
.menu-item-group:hover .sub-menu-dropdown {
    display: block !important;
}

.nav-link-sub {
    display: block !important;
    padding: 12px 25px !important;
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s !important;
}

.nav-link-sub:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top right, var(--secondary-color), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.client-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Monitoring Section */
.monitoring {
    padding: var(--section-padding);
    background-color: var(--bg-gray);
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.status-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.chart-placeholder {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

/* Service Section (Dark) */
.services-dark {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--section-padding);
}

.services-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.price-val {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Content Page Styles */
.page-header {
    background: var(--bg-gray);
    padding: 60px 0;
    margin-bottom: 40px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.sidebar {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 10px;
}

/* ========== 移动端自适应 ========== */
html {
    overflow-x: hidden;
    max-width: 100%;
}
body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .section-headline {
        font-size: 1.65rem !important;
        margin-bottom: 14px;
    }
    .section-subtext {
        font-size: 1rem !important;
        margin-bottom: 28px !important;
    }
    /* 智库双栏 → 单栏 */
    #knowledge .container > div {
        flex-direction: column;
    }
    #knowledge .container > div > div {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* 专家筛选行 */
    #expert .container > div:last-of-type > div:first-child {
        grid-template-columns: 1fr;
    }
    /* 报告中心左右栏 */
    #report > .container > div {
        flex-direction: column !important;
    }
    #report .container [style*="min-width: 350px"],
    #report .container [style*="min-width: 400px"] {
        min-width: 0 !important;
        width: 100% !important;
    }
    /* 价格路线三卡片 */
    section .container > div[style*="flex-wrap: wrap"] > div {
        min-width: 0 !important;
        width: 100% !important;
    }
    /* 价格大块左右 */
    section .container [style*="min-width: 350px"] {
        min-width: 0 !important;
        width: 100% !important;
    }
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    .client-cards {
        grid-template-columns: 1fr;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .price-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .section-headline {
        font-size: 1.4rem !important;
    }
}