/*
Theme Name: WanLife
Theme URI: https://wanlife.com
Author: WanLife Team
Author URI: https://wanlife.com
Description: 万安凤个人品牌网站主题 - 中沙科技创新中心副主席，品牌战略顾问，高校业界导师，艺术家
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wanlife
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ===================================
   CSS Variables - WanLife Design System
   =================================== */

:root {
    /* 墨绿色 + 金色 配色方案 */
    --color-emerald-dark: #0D3B34;
    --color-emerald: #1A5D52;
    --color-emerald-light: #2D7A6B;
    --color-gold: #C9A962;
    --color-gold-light: #D4BC7E;
    --color-gold-dark: #A68B4B;
    --color-cream: #F8F6F0;
    --color-warm-white: #FEFDFB;
    --color-charcoal: #2C2C2C;
    --color-slate: #5A5A5A;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --nav-height: 80px;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-emerald-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-emerald);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-emerald-dark);
}

/* ===================================
   Layout & Container
   =================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .section-container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 5rem;
    }
}

@media (min-width: 1280px) {
    .section-container {
        padding: 0 7rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    flex: 1;
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-height);
    background-color: var(--color-cream);
    transition: all 0.5s var(--ease-smooth);
}

.site-header.scrolled {
    background-color: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-width: 200px;
    height: auto;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
}

.site-title a {
    color: var(--color-emerald-dark);
}

.site-title a span {
    color: var(--color-gold);
}

.site-description {
    display: none;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .main-navigation ul {
        display: flex;
    }
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-slate);
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-emerald-dark);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a {
    color: var(--color-emerald-dark);
}

.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-emerald-dark);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-navigation.active .menu-menu-container {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    border-top: 1px solid rgba(201, 169, 98, 0.3);
    padding: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 45;
}

.main-navigation.active ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-navigation.active a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--color-charcoal);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

/* Header CTA Button */
.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Language Switch Button */
.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-emerald-dark);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--color-gold);
    color: var(--color-emerald-dark);
}

.lang-label {
    font-family: var(--font-sans);
}

/* ===================================
   Buttons
   =================================== */

.btn,
.btn-primary,
button,
input[type="submit"],
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: var(--color-emerald-dark);
    color: var(--color-cream);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover,
.btn-primary:hover,
button:hover,
input[type="submit"]:hover,
.button:hover {
    background-color: var(--color-emerald);
    color: var(--color-cream);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-emerald-dark);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-emerald-dark);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-cream);
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--color-gold) 100%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding: 5rem 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-emerald-dark);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--color-gold);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-slate);
    margin-bottom: 2.5rem;
    max-width: 28rem;
}

.hero-description .small {
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--color-emerald-dark);
    color: var(--color-cream);
    text-align: center;
}

.hero-badge-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.hero-badge-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Four Pillars */
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .hero-pillars {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pillar-card {
    position: relative;
    padding: 2rem;
    background-color: var(--color-warm-white);
    border: 1px solid rgba(201, 169, 98, 0.3);
    cursor: pointer;
    transition: all 0.5s ease;
    text-align: left;
}

.pillar-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 20px 60px rgba(13, 59, 52, 0.1);
    transform: translateY(-4px);
}

.pillar-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-emerald-dark);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.pillar-card:hover .pillar-card-title {
    color: var(--color-gold);
}

.pillar-card-desc {
    font-size: 0.75rem;
    color: var(--color-slate);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-slate);
}

.scroll-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ===================================
   Sections
   =================================== */

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-emerald-dark);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-slate);
    max-width: 40rem;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background-color: var(--color-emerald-dark);
    color: var(--color-cream);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .site-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand .site-title a {
    color: var(--color-cream);
}

.footer-brand .site-title a span {
    color: var(--color-gold);
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-cream);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(254, 253, 251, 0.1);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(254, 253, 251, 0.2);
    color: var(--color-cream);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ===================================
   Forms
   =================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background-color: transparent;
    border: 1px solid rgba(201, 169, 98, 0.4);
    color: var(--color-charcoal);
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-gold);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-slate);
    opacity: 0.6;
}

/* ===================================
   Posts & Pages
   =================================== */

.post,
.page {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--color-emerald-dark);
}

.entry-title a:hover {
    color: var(--color-gold);
}

.entry-meta {
    font-size: 0.75rem;
    color: var(--color-slate);
}

.entry-content {
    line-height: 1.8;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Pagination
   =================================== */

.pagination {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(201, 169, 98, 0.3);
    background-color: var(--color-warm-white);
    color: var(--color-charcoal);
}

.pagination a:hover,
.pagination .current {
    background-color: var(--color-emerald-dark);
    color: var(--color-cream);
    border-color: var(--color-emerald-dark);
}

/* ===================================
   Sidebar
   =================================== */

.sidebar {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-cream);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-emerald-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-gold);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.5rem;
}

/* ===================================
   Animations
   =================================== */

.animate-in {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(24px);
}

.slide-up.visible {
    animation: fadeInUp 0.7s var(--ease-out) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Back to Top
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-emerald-dark);
    color: var(--color-cream);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-emerald);
}

/* ===================================
   Utility Classes
   =================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-emerald { color: var(--color-emerald); }
.text-emerald-dark { color: var(--color-emerald-dark); }
.text-gold { color: var(--color-gold); }
.text-slate { color: var(--color-slate); }
.bg-emerald { background-color: var(--color-emerald); }
.bg-emerald-dark { background-color: var(--color-emerald-dark); }
.bg-gold { background-color: var(--color-gold); }
.bg-cream { background-color: var(--color-cream); }
.bg-warm-white { background-color: var(--color-warm-white); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Mobile Language Switch */
    .header-cta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-cta .btn-primary {
        display: none;
    }

    .lang-switch {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
}
