/* 全局样式 - ArtCenter 风格 */
:root {
    --primary-color: #ED1C24; /* ArtCenter 主红色 */
    --secondary-color: #000000; /* 黑色 */
    --accent-color: #FFFFFF; /* 白色 */
    --light-gray: #F5F5F5;
    --medium-gray: #999999;
    --dark-gray: #333333;
    --text-color: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0; /* ArtCenter 风格通常使用直角 */
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --input-bg: #FAFAFA;
    --gradient-1: #ED1C24;
    --gradient-2: #000000;
    --gradient-3: #FFFFFF;
    
    /* 新增导航图标颜色 */
    --nav-icon-1: #FF5252;
    --nav-icon-2: #FF4081;
    --nav-icon-3: #E040FB;
    --nav-icon-4: #7C4DFF;
    --nav-icon-5: #536DFE;
    --nav-icon-6: #448AFF;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    position: relative;
    padding-top: 80px;
    min-height: 100vh;
    overflow-x: hidden;
}
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: url('../images/cbg.jpg') bottom center/cover no-repeat;

    z-index: -1; /* 置于内容下方 */
    pointer-events: none; /* 防止干扰交互 */
}


/* 按钮样式 - ArtCenter 风格 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--black);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* 主内容区域 - 增强版 */
.content-container {
    position: relative;
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* 新增圆角设计 */
    border-radius: 40px; /* 主圆角扩大一倍（原20px） */
    
    /* 渐变边框增强版（可选） */
    border-image: linear-gradient(135deg, 
        rgba(237, 28, 36, 0.8), 
        rgba(237, 28, 36, 0.3)) 1;
    
    overflow: hidden; /* 确保内部元素不溢出圆角 */
}

/* 添加内发光效果增强立体感 */
.content-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit; /* 继承父元素圆角 */
    box-shadow: inset 0 0 15px rgba(237, 28, 36, 0.2);
    pointer-events: none;
    z-index: -1;
}

/* 响应式调整圆角 */
@media (max-width: 768px) {
    .content-container {
        border-radius: 30px; /* 移动端统一圆角 */
        padding: 40px 30px;
    }
    
    .content-container.soft-rounded {
        border-radius: 40px; /* 移动端更大的统一圆角 */
    }
}

.content-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.content-title h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    padding: 20px 50px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    clip-path: polygon(
        0 0,
        100% 0,
        92% 67%,
        95% 100%,
        0 85%,
        3% 40%
    );
    box-shadow: 
        0 10px 30px rgba(237, 28, 36, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Noto Serif SC', serif; /* 添加这一行 */
}

.content-title h1:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 
        0 15px 40px rgba(237, 28, 36, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.content-title h1::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--black);
    clip-path: polygon(
        0 0,
        100% 0,
        95% 50%,
        100% 100%,
        0 100%,
        5% 50%
    );
    z-index: -1;
}

.content-title p {
    color: var(--black);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    padding: 15px 0;
}

.content-title p::before,
.content-title p::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.content-title p::before {
    top: 0;
}

.content-title p::after {
    bottom: 0;
}

.content-section {
    margin-bottom: 60px;
    position: relative;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 25px;
    animation: titleSlideIn 0.8s ease-out;
}

/* 动态标题效果 */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.content-section:hover h2::after {
    width: 100px;
}

.content-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 25px 0 15px;
    position: relative;
    padding-left: 15px;
}

.content-section h3::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}

/* 表格样式 - ArtCenter 风格 */
.bazi-elegant-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.bazi-elegant-table th {
    background-color: var(--black);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.bazi-elegant-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.bazi-elegant-table .pillar-label {
    font-weight: 600;
    background-color: var(--light-gray);
}

/* 卡片样式 - ArtCenter 风格 */
.card {
     background: rgba(255, 255, 255, 0.8);
        width: 100%; /* 卡片宽度100%填满网格列 */
        margin: 0; /* 移除卡片外边距 */
        box-sizing: border-box; /* 确保padding不影响宽度计算 */
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(237, 28, 36, 0.2);
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.card:hover .card-title::after {
    width: 80px;
}

/* 页脚样式 - ArtCenter 风格 */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.copyright {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-item {
        margin-left: 20px;
    }
    
    .content-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .content-container {
        padding: 30px;
    }
    
    .content-title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .content-container {
        padding: 20px;
    }
    
    .content-title h1 {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* 粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(237, 28, 36, 0.3);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* ==================== 计算器表单 (ArtCenter风格) ==================== */
.calculator-form {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    overflow: hidden;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    position: relative;
}

.calculator-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.form-header p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.elegant-form {
    padding: 40px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 25px;
    position: relative;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1em;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--input-bg);
    font-family: inherit;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
    outline: none;
    background-color: var(--white);
}

.time-select-group {
    display: flex;
    gap: 15px;
}

.select-with-icon {
    position: relative;
    flex: 1;
}

.select-with-icon i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 2;
}

.select-with-icon select {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    appearance: none;
    background-color: var(--input-bg);
    transition: var(--transition);
    font-family: inherit;
    cursor: pointer;
}

.select-with-icon select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
    outline: none;
    background-color: var(--white);
}

.select-with-icon::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.gender-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.gender-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background: #f5f3ff;
    flex: 1;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gender-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gender-option input {
    display: none;
}

.gender-option .gender-icon {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.gender-option .gender-text {
    position: relative;
    z-index: 1;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gender-option:hover {
    background: #ede7f6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.1);
}

.gender-option input:checked + .gender-icon {
    color: var(--white);
}

.gender-option input:checked ~ .gender-text {
    color: var(--white);
}

.gender-option input:checked::before {
    opacity: 1;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

.btn i {
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(237, 28, 36, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: #666;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==================== 结果区域 (ArtCenter风格) ==================== */
#result-section {
    display: none;
    animation: fadeIn 0.6s ease;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(237, 28, 36, 0.2);
}

.result-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-header h2 i {
    color: var(--accent-color);
    font-size: 1.5em;
}

.result-actions {
    display: flex;
    gap: 15px;
}

.btn-action {
    padding: 10px 20px;
    font-size: 0.95rem;
    background: var(--white);
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.basic-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
}

.basic-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 6px 0 0 6px;
}

.basic-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(237, 28, 36, 0.2);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.basic-info-card h3 i {
    color: var(--accent-color);
    font-size: 1.3em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: var(--transition);
}

.info-item:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--primary-color);
}

.info-value {
    color: #333;
    font-weight: 500;
}

/* ==================== 八字表格 (ArtCenter风格) ==================== */
.bazi-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--white);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    position: relative;
}

.bazi-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.bazi-elegant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-width: 700px;
    position: relative;
}

.bazi-elegant-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 18px;
    text-align: center;
    font-weight: 500;
    position: relative;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bazi-elegant-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

.bazi-elegant-table td {
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(237, 28, 36, 0.1);
    vertical-align: middle;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.bazi-elegant-table td:hover {
    background: rgba(237, 28, 36, 0.05);
}

.bazi-elegant-table .pillar-label {
    background: rgba(237, 28, 36, 0.05);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.bazi-elegant-table tbody tr:nth-child(even) {
    background-color: rgba(237, 28, 36, 0.02);
}

.ten-god {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-weight: normal;
    font-style: italic;
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* 确保卡片内容适应新宽度 */
.card-content {
    padding: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 强制两列布局 */
    gap: 20px; /* 适当调整间距 */
    width: 100%; /* 占满父容器 */
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
}

/* 表格样式 - ArtCenter风格 */
.bazi-simple-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.bazi-simple-table th, 
.bazi-simple-table td {
    padding: 15px 10px;
    border: 1px solid rgba(237, 28, 36, 0.1);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.bazi-simple-table th {
    background-color: rgba(237, 28, 36, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
    font-size: 1.05rem;
}

.bazi-simple-table .row-label {
    background-color: rgba(237, 28, 36, 0.05);
    font-weight: 600;
    width: 100px;
    color: var(--primary-color);
}

.bazi-simple-table tbody tr:nth-child(even) {
    background-color: rgba(237, 28, 36, 0.02);
}

.bazi-simple-table tbody tr:hover {
    background-color: rgba(237, 28, 36, 0.05);
}

/* 提示框样式 - ArtCenter风格 */
.note-box {
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.note-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.note-box p {
    margin-bottom: 0;
    color: #444;
    line-height: 1.9;
    font-size: 1.05rem;
}

.note-box.important {
    border-left-color: var(--accent-color);
    background-color: rgba(253, 237, 236, 0.8);
}

.note-box.important::before {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 142, 0.05));
}

.example-box {
    background-color: rgba(233, 247, 239, 0.8);
    border: 1px solid rgba(195, 230, 203, 0.5);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.example-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(195, 230, 203, 0.1), rgba(233, 247, 239, 0.05));
    z-index: -1;
}

.example-box h4 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-box h4 i {
    font-size: 1.2em;
}

.example-box.detailed {
    background-color: rgba(227, 242, 253, 0.8);
    border-color: rgba(187, 222, 251, 0.5);
}

.example-box.detailed::before {
    background: linear-gradient(135deg, rgba(187, 222, 251, 0.1), rgba(227, 242, 253, 0.05));
}

.example-box.detailed h4 {
    color: #0d47a1;
}

/* 步骤框样式 - ArtCenter风格 */
.step-box {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.step {
    display: flex;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);
    position: relative;
    z-index: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-content p {
    color: #444;
    line-height: 1.9;
    margin-bottom: 0;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.app-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
}

.app-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 时间轴样式 - ArtCenter风格 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -12px;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(237, 28, 36, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 0;
}

/* 资源网格样式 - ArtCenter风格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.resource-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    z-index: -1;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 10px;
}

.resource-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.resource-card h4 i {
    margin-right: 15px;
    font-size: 1.3em;
}

.resource-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.resource-card .btn {
    width: 100%;
}

.resource-card.book {
    border-top: 5px solid #3498db;
}

.resource-card.tool {
    border-top: 5px solid #2ecc71;
}

.resource-card.course {
    border-top: 5px solid #e74c3c;
}

/* 五行雷达图样式 - ArtCenter风格 */
.wuxing-chart {
    margin: 40px 0;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.chart-radar {
    width: 280px;
    height: 280px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
}

.chart-radar::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: rgba(237, 28, 36, 0.05);
    backdrop-filter: blur(2px);
}

.chart-radar::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(237, 28, 36, 0.03);
    backdrop-filter: blur(1px);
}

.chart-axis {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(var(--angle));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.chart-axis span:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.chart-value {
    width: 3px;
    height: calc(var(--value) * 40px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    position: relative;
    margin-top: 15px;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(237, 28, 36, 0.3);
    transition: height 1s ease;
}

.chart-value::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.chart-legend {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    max-width: 400px;
}

.chart-legend p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.chart-legend p::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 12px;
    border-radius: 3px;
}

.wuxing-wood::before { background: #2e7d32; }
.wuxing-fire::before { background: #c62828; }
.wuxing-earth::before { background: #8d6e63; }
.wuxing-metal::before { background: #1565c0; }
.wuxing-water::before { background: #0277bd; }

/* 五行颜色类 */
.wuxing-wood { color: #2e7d32; font-weight: 600; }
.wuxing-fire { color: #c62828; font-weight: 600; }
.wuxing-earth { color: #8d6e63; font-weight: 600; }
.wuxing-metal { color: #1565c0; font-weight: 600; }
.wuxing-water { color: #0277bd; font-weight: 600; }

/* 页脚样式 - ArtCenter风格 */
.main-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    color: var(--light-color);
    padding: 50px 0 30px;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/footer-pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

.footer-links a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.main-footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 动画效果 - 增强版 */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
}

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

/* 响应式设计 - 优化版 */
@media (max-width: 1200px) {
    .nav-link {
        padding: 25px 18px;
        font-size: 1rem;
    }
    
    .content-container {
        padding: 40px;
    }
    
    .card-grid,
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        padding: 15px 0;
        margin-left: 0;
        order: -1;
    }
    
    .main-nav {
        width: 100%;
        margin: 15px 0 0;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        padding: 15px 15px;
        font-size: 0.95rem;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
        padding: 5px 0;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
        transform: none;
    }
    
    .dropdown-link {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 30px;
    }
    
    .dropdown-link:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-link i {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 21px;
    }
    
    .content-container {
        padding: 30px;
    }
    
    .form-group {
        min-width: calc(50% - 30px);
    }
    
    .chart-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 30px;
        margin-top: 20px;
    }
    
    .content-title h1 {
        font-size: 2.2rem;
    }
    
    .content-title p {
        font-size: 1.1rem;
    }
    
    .card-grid, 
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .time-select-group {
        flex-direction: column;
    }
    
    .gender-group {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .bazi-elegant-table {
        font-size: 0.95rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .result-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .timeline::after {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after, 
    .timeline-item.right::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .slogan {
        font-size: 0.75rem;
    }
    
    .nav-link {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .nav-link i {
        margin-right: 5px;
    }
    
    .content-container {
        padding: 25px;
    }
    
    .content-title h1 {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .bazi-elegant-table td {
        padding: 12px 8px;
    }
    
    .ten-god {
        font-size: 0.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 特殊效果类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 加载动画 */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(237, 28, 36, 0.2);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-gray) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 新增的开场页专属样式 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('../images/cbg.jpg') no-repeat center center;
    background-size: cover;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1.5s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.0rem;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    animation: fadeIn 2s ease;
}

.highlight-phrase {
    display: inline-block;
    font-size: 3.5rem;
    color: #f8d64e;
    text-shadow: 0 0 15px rgba(248, 214, 78, 0.7);
    margin: 1rem 0;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(-5deg);
    animation: pulse 2s infinite alternate, float 6s ease-in-out infinite;
}

.bazi-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.element {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: elementAppear 0.8s forwards;
}

.element:nth-child(1) { animation-delay: 0.5s; background: rgba(139, 195, 74, 0.8); }
.element:nth-child(2) { animation-delay: 0.8s; background: rgba(244, 67, 54, 0.8); }
.element:nth-child(3) { animation-delay: 1.1s; background: rgba(255, 235, 59, 0.8); }
.element:nth-child(4) { animation-delay: 1.4s; background: rgba(96, 125, 139, 0.8); }
.element:nth-child(5) { animation-delay: 1.7s; background: rgba(33, 150, 243, 0.8); }

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin: 1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease 2s forwards;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.destiny-quote {
    font-size: 1.5rem;
    margin-top: 3rem;
    font-style: italic;
    position: relative;
    padding: 1rem 2rem;
    display: inline-block;
    animation: fadeIn 2.5s ease;
}

.destiny-quote:before, 
.destiny-quote:after {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
}

.destiny-quote:before {
    top: -10px;
    left: -5px;
}

.destiny-quote:after {
    bottom: -30px;
    right: -5px;
}

/* 七步法Banner样式 */
.seven-steps-banner {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.banner-content i {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

/* 星空背景样式 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

/* 新增动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-50px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    from { transform: rotate(-5deg) scale(1); }
    to { transform: rotate(-5deg) scale(1.05); }
}

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

@keyframes elementAppear {
    to { 
        opacity: 1; 
        transform: translateY(0) rotate(360deg);
    }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .highlight-phrase {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .highlight-phrase {
        font-size: 2.2rem;
    }
    
    .element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .seven-steps-banner {
        height: 120px;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .highlight-phrase {
        font-size: 1.8rem;
    }
    
    .destiny-quote {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .seven-steps-banner {
        height: 100px;
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .intro-with-image {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        margin-top: 40px;
    }
    
    .intro-text {
        flex: 1;
    }
    
    .intro-image {
        flex: 0 0 300px;
        margin-top: 20px;
    }
    
    .wuxing-image {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    @media (max-width: 768px) {
        .intro-with-image {
            flex-direction: column;
        }
        
        .intro-image {
            flex: 1;
            width: 100%;
            margin-top: 20px;
        }
    }
}

/* 新增动态效果 */
/* 滚动视差效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* 悬停放大效果 */
.hover-zoom {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* 文字浮动效果 */
.floating-text {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 背景动画 */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0),
        rgba(255,255,255,0.1),
        rgba(255,255,255,0)
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 标题特殊效果增强 */
.special-title {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.special-title::before,
.special-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(237, 28, 36, 0));
    transform: translateY(-50%);
}

.special-title::before {
    left: -30px;
    transform: translateY(-50%) rotate(180deg);
}

.special-title::after {
    right: -30px;
}

.special-title span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.special-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(237, 28, 36, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
    transition: var(--transition);
}

.special-title:hover span::after {
    height: 20px;
    background: rgba(237, 28, 36, 0.3);
}

/* 卡片悬停效果增强 */
.hover-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hover-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 按钮悬停效果增强 */
.hover-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.hover-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.example-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.example-text {
    flex: 1;
}

.example-image {
    flex: 0 0 auto;
    max-width: 500px;
}

.example-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .example-content {
        flex-direction: column;
    }
    
    .example-image {
        max-width: 100%;
    }
}

/* 新增的五行卡片样式 */
        .wuxing-card {
            background: rgba(255,255,255,0.85);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border-top: 5px solid;
            margin-bottom: 30px;
        }
        .wuxing-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(0,0,0,0.15);
        }
        .wuxing-card.wood { border-color: #4CAF50; }
        .wuxing-card.fire { border-color: #F44336; }
        .wuxing-card.earth { border-color: #FFC107; }
        .wuxing-card.metal { border-color: #2196F3; }
        .wuxing-card.water { border-color: #03A9F4; }
        
        .wuxing-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .wuxing-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 1.5rem;
        }
        .wuxing-icon.wood { background: #4CAF50; }
        .wuxing-icon.fire { background: #F44336; }
        .wuxing-icon.earth { background: #FFC107; }
        .wuxing-icon.metal { background: #2196F3; }
        .wuxing-icon.water { background: #03A9F4; }
        
        /* 五行生克对比布局 */
        .shengke-container {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }
        .shengke-section {
            flex: 1;
            background: rgba(255,255,255,0.85);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        }
        .shengke-section.sheng {
            border-top: 5px solid #8BC34A;
        }
        .shengke-section.ke {
            border-top: 5px solid #E91E63;
        }
        .shengke-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin: 10px 0;
            border-radius: 8px;
            background: rgba(0,0,0,0.03);
            transition: all 0.3s ease;
        }
        .shengke-item:hover {
            background: rgba(0,0,0,0.05);
            transform: translateX(5px);
        }
        .shengke-item i {
            margin-right: 15px;
            font-size: 1.2rem;
        }
        .shengke-item.sheng i { color: #4CAF50; }
        .shengke-item.ke i { color: #F44336; }
        
        /* 五行生克图容器 */
        .wuxing-image-container {
            background: rgba(255,255,255,0.85);
            border-radius: 12px;
            padding: 30px;
            margin: 40px 0;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            text-align: center;
        }
        .wuxing-image {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        .wuxing-image:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        .image-caption {
            margin-top: 15px;
            font-size: 0.95rem;
            color: #666;
        }
        
        /* 五行对应关系表格 */
        .wuxing-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            background: rgba(255,255,255,0.85);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        }
        .wuxing-table th {
            background: linear-gradient(135deg, #ED1C24, #000000);
            color: white;
            padding: 15px;
            text-align: center;
        }
        .wuxing-table td {
            padding: 12px 15px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            text-align: center;
        }
        .wuxing-table tr:last-child td {
            border-bottom: none;
        }
        .wuxing-table tr:hover td {
            background: rgba(0,0,0,0.03);
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .shengke-container {
                flex-direction: column;
            }
            .wuxing-card {
                padding: 20px;
            }
        }

/* 特殊规则网格布局 */
.special-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.special-rule {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.special-rule h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.special-rule ul {
    padding-left: 20px;
}

.special-rule li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 十神网格布局 */
.shishen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.shishen-card {
    padding: 20px;
    transition: all 0.3s ease;
}

.shishen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.shishen-type {
    margin-bottom: 20px;
}

.shishen-type h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(237,28,36,0.2);
}

.shishen-type ul {
    padding-left: 15px;
}

.shishen-type li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 示例网格布局 */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.example-item {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* 案例布局 */
.example-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.example-case {
    padding: 25px;
}

.bazi-table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.analysis-steps {
    margin-top: 20px;
}

.analysis-steps ol {
    padding-left: 20px;
}

.analysis-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shishen-grid {
        grid-template-columns: 1fr;
    }
    
    .example-cases {
        grid-template-columns: 1fr;
    }
    
    .special-rules-grid {
        grid-template-columns: 1fr;
    }
}
.shishen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.shishen-card {
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shishen-type {
    margin-bottom: 20px;
}

.shishen-type h4 {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.shishen-type ul {
    padding-left: 20px;
}

.shishen-type li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .shishen-grid {
        grid-template-columns: 1fr;
    }
}
