/* 全局样式 */
:root {
    /* 蓝色主题变量 */
    --blue-primary: #2c5aa0;
    --blue-secondary: #4a90e2;
    --blue-accent: #3498db;
    --blue-light: #e8f2ff;
    --blue-dark: #1a365d;
    
    /* 灰色主题变量 */
    --gray-primary: #4a5568;
    --gray-secondary: #718096;
    --gray-accent: #2d3748;
    --gray-light: #f7fafc;
    --gray-dark: #1a202c;
    
    /* 紫色主题变量 */
    --purple-primary: #6b46c1;
    --purple-secondary: #8b5cf6;
    --purple-accent: #9f7aea;
    --purple-light: #f3e8ff;
    --purple-dark: #44337a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

/* 主题颜色切换 */
[data-theme="blue"] {
    --primary-color: var(--blue-primary);
    --secondary-color: var(--blue-secondary);
    --accent-color: var(--blue-accent);
    --light-color: var(--blue-light);
    --dark-color: var(--blue-dark);
}

[data-theme="gray"] {
    --primary-color: var(--gray-primary);
    --secondary-color: var(--gray-secondary);
    --accent-color: var(--gray-accent);
    --light-color: var(--gray-light);
    --dark-color: var(--gray-dark);
}

[data-theme="purple"] {
    --primary-color: var(--purple-primary);
    --secondary-color: var(--purple-secondary);
    --accent-color: var(--purple-accent);
    --light-color: var(--purple-light);
    --dark-color: var(--purple-dark);
}

/* 导航栏样式 */
#mainNav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* 主题切换器样式 */
.theme-switcher {
    gap: 8px;
    align-items: center;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: white;
}

.theme-btn.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
}

.color-dot.blue {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
}

.color-dot.gray {
    background: linear-gradient(135deg, var(--gray-primary), var(--gray-accent));
}

.color-dot.purple {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
}

/* 英雄区样式 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white !important;
}

.hero-content {
    padding: 2rem 0;
    color: white !important;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    color: white !important;
}

.hero-section p {
    color: white !important;
}

.hero-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taiji-symbol {
    font-size: 8rem;
    animation: rotate 20s linear infinite;
    color: var(--accent-color);
}

.text-accent {
    color: var(--accent-color);
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 章节标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    opacity: 0.8;
}

/* 关于我们样式 */
.about-content h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-item {
    text-align: left;
    padding: .5rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.feature-item h5 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.stat-item {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* 服务卡片样式 */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* 哲学理念样式 */
.philosophy-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.philosophy-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 联系表单样式 */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-info {
    text-align: center;
    padding: 1.5rem;
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.contact-info h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

/* 页脚样式 */
.footer {
    background: var(--dark-color);
    color: white;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-text {
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .taiji-symbol {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .theme-switcher {
        order: 1 !important;
        margin-right: 0 !important;
        margin-left: auto;
    }
    
    .navbar-toggler {
        order: 2;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 1rem !important;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .taiji-symbol {
        font-size: 5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card,
    .philosophy-card {
        margin-bottom: 2rem;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 背景装饰 */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa, var(--light-color)) !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 道家文化卡片样式 */
.culture-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.culture-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.culture-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.culture-features li {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* 老子思想样式 */
.quote-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quote-card i {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
    padding-left: 2rem;
}

.quote-explanation {
    color: #666;
    margin-top: 1rem;
    padding-left: 2rem;
}

.principles-list {
    margin-top: 2rem;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.principle-item i {
    color: var(--accent-color);
    font-size: 0.5rem;
    margin-top: 0.5rem;
    margin-right: 1rem;
}

.principle-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.principle-content p {
    color: #666;
    margin: 0;
}

.application-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateX(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.application-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.application-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.application-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.application-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* 修道修养样式 */
.cultivation-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.cultivation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cultivation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.cultivation-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.cultivation-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cultivation-list li:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(10px);
}

.practice-schedule {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.practice-schedule table {
    margin-top: 1.5rem;
}

.practice-schedule th {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem;
}

.practice-schedule td {
    padding: 1rem;
    vertical-align: middle;
}

.practice-schedule tr:hover {
    background: var(--light-color);
}

/* 更新联系表单样式 */
.contact-form .btn-primary {
    min-width: 200px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quote-card {
        padding: 1.5rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .application-card {
        flex-direction: column;
        text-align: center;
    }
    
    .application-icon {
        margin: 0 auto 1rem;
    }
    
    .practice-schedule {
        padding: 1rem;
    }
    
    .cultivation-list li {
        padding: 0.75rem;
    }
}

/* 动画效果 */
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.culture-icon i,
.cultivation-icon i {
    animation: floatIcon 3s ease-in-out infinite;
}

/* 主题特定样式 */
[data-theme="blue"] .quote-card {
    border-left: 4px solid var(--blue-accent);
}

[data-theme="gray"] .quote-card {
    border-left: 4px solid var(--gray-accent);
}

[data-theme="purple"] .quote-card {
    border-left: 4px solid var(--purple-accent);
}

/* Hero Features 横向排列样式 */
.hero-features {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0.95;
    color: white !important;
}

.hero-features .feature-item i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* 在较大屏幕上横向排列 */
@media (min-width: 992px) {
    .hero-features {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-features .feature-item {
        flex: 1;
        min-width: 250px;
        justify-content: flex-start;
    }
}

/* 在中等屏幕上两列排列 */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-features .feature-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* 在小屏幕上保持垂直排列 */
@media (max-width: 767px) {
    .hero-features .feature-item {
        font-size: 1rem;
        margin-bottom: 0;
    }
}