/* ============================================
   王雯祺个人官网 - 样式表
   主题：高端暗色医美个人品牌
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #13131f;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent: #c9a962;
    --accent-light: #e0c88a;
    --accent-dark: #a08840;
    --border: #2a2a3a;
    --border-light: #333344;
    --success: #5cb85c;
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --container-max: 1200px;
    --container-padding: 24px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent-light);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* Link Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9375rem;
}

.link-arrow:hover {
    gap: 10px;
}

/* Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.section-header h2 {
    color: var(--text-primary);
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 80px 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 72px;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nav-brand a:hover .brand-text {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(201, 169, 98, 0.08);
}

.nav-menu a.active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 1px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(201,169,98,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,98,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .name {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title .title {
    display: block;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.image-placeholder,
.hero-image-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
}

.image-placeholder.wide {
    aspect-ratio: 16/9;
}

.image-placeholder.large {
    aspect-ratio: 3/4;
    max-width: 400px;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    font-size: 1.125rem;
}

.image-placeholder span,
.hero-image-placeholder span {
    font-weight: 500;
    margin-bottom: 8px;
}

.image-placeholder small,
.hero-image-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    font-size: 1.0625rem;
    margin-bottom: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
}

/* ============================================
   INSTITUTIONS
   ============================================ */
.institutions {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.institution-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.card-image .image-placeholder {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-body p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* ============================================
   ARTICLES
   ============================================ */
.articles {
    padding: 120px 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-item {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.article-item:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.article-item time {
    display: block;
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.article-item h3 {
    margin-bottom: 10px;
}

.article-item h3 a {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.article-item h3 a:hover {
    color: var(--accent);
}

.article-item p {
    font-size: 0.9375rem;
    margin: 0;
}

.section-footer {
    margin-top: 48px;
    text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 120px 0;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201,169,98,0.06) 0%, transparent 70%);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
    padding: 80px 0 120px;
}

.about-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    align-items: start;
}

.about-portrait {
    position: sticky;
    top: 120px;
}

.about-body section {
    margin-bottom: 48px;
}

.about-body h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.about-body p {
    font-size: 1rem;
    margin-bottom: 16px;
}

.about-body blockquote {
    padding: 24px 28px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.about-body blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.expertise-list {
    display: grid;
    gap: 14px;
}

.expertise-list li {
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.expertise-list li strong {
    color: var(--accent);
    display: inline-block;
    min-width: 100px;
}

/* ============================================
   INSTITUTIONS DETAIL
   ============================================ */
.institutions-detail {
    padding: 80px 0 120px;
}

.institution-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.institution-detail.reverse {
    direction: rtl;
}

.institution-detail.reverse > * {
    direction: ltr;
}

.institution-visual {
    position: sticky;
    top: 120px;
}

.institution-info h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.institution-tag {
    display: block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.institution-desc {
    margin-bottom: 32px;
}

.institution-desc p {
    margin-bottom: 14px;
}

.institution-features h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.institution-features ul {
    display: grid;
    gap: 10px;
}

.institution-features li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.institution-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

/* ============================================
   ARTICLES PAGE
   ============================================ */
.articles-list-page {
    padding: 80px 0 120px;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-date {
    display: block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.article-header h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-excerpt {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body {
    font-size: 1rem;
}

.article-body h3 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-size: 1.25rem;
}

.article-body p {
    margin-bottom: 16px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 80px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-note {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-note p {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-note ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-note li {
    position: relative;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-note li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-box {
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cta-box:hover {
    border-color: var(--border-light);
}

.cta-box.highlight {
    background: linear-gradient(135deg, rgba(201,169,98,0.08) 0%, var(--bg-secondary) 100%);
    border-color: rgba(201,169,98,0.2);
}

.cta-box h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.cta-box p {
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.cta-box .btn {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-brand .brand-text {
    font-size: 1.125rem;
}

.footer-brand p {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-nav ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.footer-meta {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-meta p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-meta a {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-placeholder {
        max-width: 320px;
        aspect-ratio: 1/1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .institutions-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-portrait {
        position: static;
        display: flex;
        justify-content: center;
    }
    
    .image-placeholder.large {
        max-width: 300px;
        aspect-ratio: 1/1;
    }
    
    .institution-detail,
    .institution-detail.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .institution-detail.reverse > * {
        direction: ltr;
    }
    
    .institution-visual {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1.125rem;
        padding: 12px 16px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .about-preview,
    .institutions,
    .articles,
    .cta {
        padding: 80px 0;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .section-divider {
        margin: 48px 0;
    }
    
    .footer-meta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-item {
        padding: 20px;
    }
    
    .expertise-list li strong {
        display: block;
        margin-bottom: 4px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(201, 169, 98, 0.3);
    color: var(--text-primary);
}
