/* ========================================
   Psychedao - 道法自然 · 心灵归一
   ======================================== */

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2A2A2A;
    --text-primary: #F5F5F5;
    --text-secondary: #888888;
    --accent-gold: rgba(212, 175, 55, 0.3);
    --accent-gold-light: rgba(212, 175, 55, 0.15);
    --border-color: #333333;
    --glow-gold: #FFD700;
    --glow-gold-light: rgba(255, 215, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    /* height: 120px; */
    margin: 0 auto;
    padding: 20px 24px;
}

.nav-container.nav-center {
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.logo-img {
    width: 120px;
    /* height: 120px; */
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0D0D0D 0%, var(--bg-primary) 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bagua-rotate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.3;
    animation: rotateBagua 120s linear infinite;
}

@keyframes rotateBagua {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 24px;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   金色发光"道"字特效容器
   ======================================== */
.dao-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 60px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 外层大光晕 */
.dao-glow-outer {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(255, 180, 0, 0.04) 40%, transparent 70%);
    animation: glowPulseOuter 4s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes glowPulseOuter {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* 内层小光晕 */
.dao-glow-inner {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 215, 0, 0.05) 50%, transparent 70%);
    animation: glowPulseInner 3s ease-in-out infinite;
    filter: blur(30px);
}

@keyframes glowPulseInner {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 0.95; }
}

/* "道"字Logo - 多层金色发光效果 */
.dao-logo {
    position: relative;
    z-index: 10;
    width: 280px;
    height: 280px;
    object-fit: contain;
    opacity: 0.85;
    filter: 
        drop-shadow(0 0 6px rgba(255, 215, 0, 0.5))
        drop-shadow(0 0 12px rgba(255, 215, 0, 0.4))
        drop-shadow(0 0 20px rgba(255, 200, 0, 0.3))
        drop-shadow(0 0 35px rgba(255, 180, 0, 0.25))
        drop-shadow(0 0 50px rgba(255, 160, 0, 0.2))
        drop-shadow(0 0 70px rgba(255, 140, 0, 0.15));
    animation: daoAppear 1.5s ease-out forwards, calligraphyFloat 6s ease-in-out 1.5s infinite;
}

@keyframes daoAppear {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: 
            drop-shadow(0 0 0px rgba(255, 215, 0, 0))
            drop-shadow(0 0 0px rgba(255, 215, 0, 0))
            drop-shadow(0 0 0px rgba(255, 200, 0, 0))
            drop-shadow(0 0 0px rgba(255, 180, 0, 0))
            drop-shadow(0 0 0px rgba(255, 160, 0, 0))
            drop-shadow(0 0 0px rgba(255, 140, 0, 0));
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        filter: 
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 25px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 40px rgba(255, 200, 0, 0.4))
            drop-shadow(0 0 60px rgba(255, 180, 0, 0.3))
            drop-shadow(0 0 90px rgba(255, 160, 0, 0.25))
            drop-shadow(0 0 120px rgba(255, 140, 0, 0.2));
    }
    100% {
        opacity: 0.85;
        transform: scale(1);
        filter: 
            drop-shadow(0 0 6px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.4))
            drop-shadow(0 0 20px rgba(255, 200, 0, 0.3))
            drop-shadow(0 0 35px rgba(255, 180, 0, 0.25))
            drop-shadow(0 0 50px rgba(255, 160, 0, 0.2))
            drop-shadow(0 0 70px rgba(255, 140, 0, 0.15));
    }
}

@keyframes calligraphyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* 粒子与光束画布 */
.dao-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* ========================================
   Hero Text
   ======================================== */
.hero-text {
    position: relative;
    z-index: 10;
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 20px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3s forwards;
}

.tagline {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3.2s forwards;
}

.subtitle {
    font-size: 0.875rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 1s ease-out 3.4s forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3.6s forwards;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text .lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text .desc-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.yinyang-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.yinyang-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 180, 0, 0.15) 30%, rgba(255, 160, 0, 0.08) 60%, transparent 80%);
    filter: blur(35px);
    animation: glowPulse 4s ease-in-out infinite;
}

.yinyang-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    filter: blur(20px);
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
}

.yinyang-orb {
    width: 300px;
    height: 300px;
    background: url('./bagua.png') center/contain no-repeat;
    opacity: 0.5;
    animation: gentleRotate 30s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes gentleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}

.value-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.value-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: var(--bg-primary);
}

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

.service-card {
    position: relative;
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    color: var(--accent-gold);
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.5s ease;
}

.service-card:hover .service-hover-line {
    width: 100%;
}

/* ========================================
   Philosophy Section
   ======================================== */
.philosophy-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
    pointer-events: none;
}

.bagua-detail {
    width: 100%;
    height: 100%;
}

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

.quote-card {
    text-align: center;
    padding: 60px;
    margin-bottom: 80px;
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    font-family: serif;
}

.dao-quote {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: normal;
}

.quote-source {
    color: var(--text-secondary);
    font-style: normal;
}

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

.philosophy-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.philosophy-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.philosophy-item h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.philosophy-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-primary);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.contact-details h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    position: relative;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-bg {
    left: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

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

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

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

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .values-grid,
    .services-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .yinyang-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px;
    }

    .hero-text {
        padding-top: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 40px;
        gap: 32px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .values-grid,
    .services-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .dao-container {
        width: 300px;
        height: 300px;
    }

    .dao-logo {
        width: 200px;
        height: 200px;
    }

    .dao-glow-outer {
        width: 340px;
        height: 340px;
    }

    .dao-glow-inner {
        width: 260px;
        height: 260px;
    }
}
