/* ============================================
   Nihon Premium Clinic - 统一基础样式 (v2.0)
   Unified Base Styles - Optimized
   ============================================ */

/* ── CSS变量系统 ────────────────────────────────────────── */
:root {
    /* 主色调 - 深蓝色系 */
    --primary: #1a365d;
    --primary-dark: #0f172a;
    --primary-mid: #2c5282;
    --primary-light: #2b6cb0;
    
    /* 金色强调色 - 统一使用 */
    --accent: #d4a853;
    --accent-light: #e8c878;
    --accent-dark: #b8956a;
    --accent-hover: #c49a4b;
    
    /* 辅助色 */
    --secondary: #0066cc;
    
    /* 中性色 */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* 功能色 */
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* 主题色 */
    --theme-pink: #ec4899;
    --theme-cyan: #06b6d4;
    --theme-purple: #8b5cf6;
    --theme-orange: #f59e0b;
    --theme-green: #10b981;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
    --transition-slow: all 0.4s ease;
    
    /* 间距 */
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    
    /* Hero高度 */
    --hero-height: 600px;
    --hero-height-mobile: 450px;
}

/* ── Reset & Base ────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* 容器 - 统一使用，避免冲突 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header容器特殊宽度 - 页面基础样式 */
.header .container {
    max-width: 80%;
    width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── 统一Hero区域样式 ────────────────────────────────────────── */
.hero-unified {
    position: relative;
    height: var(--hero-height);
    margin-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-unified::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-unified::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.hero-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Hero标题 - 统一基础样式，页面可覆盖 */
.hero-title {
    font-size: 52px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

/* Hero描述高亮和子描述 - 确保换行显示 */
.hero-desc-highlight,
.hero-desc-sub {
    display: block;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2) 0%, rgba(232, 200, 120, 0.2) 100%);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent);
}

.hero-feature span {
    font-size: 14px;
    font-weight: 600;
}

/* Hero背景变体 */
.hero-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    color: #fff;
}

.hero-dark .hero-desc {
    color: rgba(255, 255, 255, 0.8);
}

.hero-light {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #e0f2fe 70%, #dbeafe 100%);
    color: var(--text-primary);
}

.hero-light .hero-desc {
    color: var(--text-muted);
}

.hero-warm {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 30%, #f3e8ff 70%, #ede9fe 100%);
    color: var(--text-primary);
}

.hero-warm .hero-desc {
    color: var(--text-muted);
}

/* ── 统一区块标题样式 ────────────────────────────────────────── */
.section-header-unified {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #966f28;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* 区块标题 - 统一基础样式 */
.section-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-title span {
    font-weight: 700;
    color: var(--primary);
}

.section-title span {
    font-weight: 700;
    color: var(--primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── 统一卡片样式 ────────────────────────────────────────── */
.card-unified {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card-unified:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(232, 200, 120, 0.15) 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
}

/* ── 统一按钮样式 ────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.35);
    color: #fff;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.4);
    color: #fff;
}

/* ── 统一网格系统 ────────────────────────────────────────── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-lg-6,
.col-lg-4,
.col-lg-3,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

@media (min-width: 992px) {
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ── 响应式设计 ────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-unified {
        height: var(--hero-height-mobile);
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    /* 非首页hero统一高度350px */
    .page-hero,
    .about-hero-new,
    .screening-hero,
    .services-hero,
    .contact-hero,
    .news-hero,
    .unified-hero {
        height: 350px !important;
        min-height: 350px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-features {
        gap: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* 移动端非首页hero高度 */
    .page-hero,
    .about-hero-new,
    .screening-hero,
    .services-hero,
    .contact-hero,
    .news-hero,
    .unified-hero {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* ── 工具类 ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
