/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #c8102e;
    --secondary-color: #e63946;
    --dark-color: #2c1f1f;
    --light-color: #fef8f6;
    --text-color: #333;
    --border-color: #f0d5d0;
    --shadow: 0 10px 30px rgba(200, 16, 46, 0.08);
    --transition: all 0.3s ease;
    --gold: #c9a96e;
    --gold-light: #e8d5a8;
    --gold-dark: #a07d45;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* ===== 全局底纹：传统祥云暗纹 ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 40 Q20 28 32 28 Q30 16 42 16 Q50 8 58 16 Q70 12 70 26 Q78 28 76 38 Q80 44 74 48 Q76 56 66 56 Q66 64 56 64 Q52 72 42 68 Q34 74 28 66 Q18 66 18 56 Q10 52 14 44 Q10 40 20 40Z' fill='%23c8102e' /%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* ===== 顶部导航 ===== */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.2);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 28px; font-weight: bold; display: flex; align-items: center; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); text-decoration: none; color: white; }
.logo i { margin-right: 10px; font-size: 32px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: white; text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 15px; border-radius: 30px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: white; }
main { margin-top: 0; min-height: calc(100vh - 160px); }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #a00c22 0%, var(--primary-color) 30%, var(--secondary-color) 70%, #f05a65 100%);
    color: white;
    padding: 110px 0 45px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.06" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
/* Hero 内部光晕装饰 */
.hero::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 48px; margin-bottom: 12px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); animation: fadeInDown 1s ease; }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 18px; opacity: 0.9; animation: fadeInUp 1s ease 0.3s both; }
.hero-text { font-size: 24px; font-weight: bold; margin-top: 12px; min-height: 36px; animation: pulse 2s infinite; }
.hero-buttons { margin-top: 25px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease 0.6s both; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px; background: white; color: var(--primary-color); border: none; border-radius: 30px; font-size: 17px; font-weight: 700; cursor: pointer; transition: var(--transition); text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-hero-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); border-radius: 30px; font-size: 17px; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: white; transform: translateY(-3px); }
.hero-sub { padding: 110px 0 20px 0; }

/* ===== Hero 装饰：祥云 ===== */
.hero-decorations {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.deco-cloud {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    filter: blur(1px);
}
.deco-cloud::before,
.deco-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    filter: blur(1px);
}
.dc-1 {
    width: 140px; height: 50px;
    top: 18%; left: -30px;
    animation: floatCloud1 18s ease-in-out infinite;
}
.dc-1::before { width: 60px; height: 60px; top: -30px; left: 25px; }
.dc-1::after { width: 45px; height: 45px; top: -22px; left: 70px; }

.dc-2 {
    width: 110px; height: 40px;
    top: 12%; right: 5%;
    animation: floatCloud2 22s ease-in-out infinite;
}
.dc-2::before { width: 50px; height: 50px; top: -26px; left: 18px; }
.dc-2::after { width: 38px; height: 38px; top: -18px; left: 55px; }

.dc-3 {
    width: 90px; height: 34px;
    top: 65%; left: 8%;
    animation: floatCloud3 20s ease-in-out infinite;
}
.dc-3::before { width: 40px; height: 40px; top: -22px; left: 14px; }
.dc-3::after { width: 32px; height: 32px; top: -16px; left: 44px; }

.dc-4 {
    width: 120px; height: 44px;
    top: 72%; right: -10px;
    animation: floatCloud1 24s ease-in-out infinite reverse;
}
.dc-4::before { width: 55px; height: 55px; top: -28px; left: 22px; }
.dc-4::after { width: 42px; height: 42px; top: -20px; left: 60px; }

.dc-5 {
    width: 70px; height: 28px;
    top: 35%; left: 50%;
    animation: floatCloud2 16s ease-in-out infinite;
    opacity: 0.7;
}
.dc-5::before { width: 32px; height: 32px; top: -18px; left: 10px; }
.dc-5::after { width: 26px; height: 26px; top: -14px; left: 34px; }

/* Hero 装饰：星光闪烁 */
.deco-sparkle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(255, 215, 0, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.3);
}
.ds-1 { top: 15%; left: 20%; animation: sparkle 3s ease-in-out infinite; }
.ds-2 { top: 25%; right: 18%; animation: sparkle 4s ease-in-out 0.5s infinite; }
.ds-3 { top: 50%; left: 12%; animation: sparkle 3.5s ease-in-out 1s infinite; }
.ds-4 { top: 45%; right: 10%; animation: sparkle 4.5s ease-in-out 1.5s infinite; }
.ds-5 { top: 70%; left: 30%; animation: sparkle 3.2s ease-in-out 0.8s infinite; }
.ds-6 { top: 80%; right: 25%; animation: sparkle 3.8s ease-in-out 2s infinite; }
.ds-7 { top: 10%; left: 60%; animation: sparkle 5s ease-in-out 0.3s infinite; }
.ds-8 { top: 55%; right: 35%; animation: sparkle 4.2s ease-in-out 1.2s infinite; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.8); }
}
@keyframes floatCloud1 {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(15px) translateY(-6px); }
    50% { transform: translateX(8px) translateY(-12px); }
    75% { transform: translateX(-8px) translateY(-6px); }
}
@keyframes floatCloud2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-12px) translateY(-8px); }
    66% { transform: translateX(10px) translateY(-4px); }
}
@keyframes floatCloud3 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(-10px); }
}

/* ===== 装饰分割线（传统中式） ===== */
.deco-divider-section {
    padding: 18px 0;
    background: var(--light-color);
    position: relative;
}
.deco-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 360px;
    margin: 0 auto;
}
.deco-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.deco-divider-ornament {
    width: 12px; height: 12px;
    position: relative;
    flex-shrink: 0;
}
.deco-divider-ornament::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    border: 1.5px solid var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
}
.deco-divider-ornament::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}
.section-subtitle { text-align: center; color: #888; font-size: 15px; margin-bottom: 28px; }

/* ===== 表单区域 ===== */
.form-section {
    padding: 35px 0 40px 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}
/* 福字水印 */
.form-fu-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 280px;
    font-weight: 900;
    color: rgba(200, 16, 46, 0.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
/* 金色角花边框 */
.form-deco-frame {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 6px;
    z-index: 1;
}
.form-deco-corner {
    position: absolute;
    width: 28px; height: 28px;
    z-index: 2;
}
.form-deco-corner::before,
.form-deco-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}
.form-deco-corner.tl { top: 0; left: 0; }
.form-deco-corner.tl::before { top: 0; left: 0; width: 28px; height: 2px; }
.form-deco-corner.tl::after { top: 0; left: 0; width: 2px; height: 28px; }

.form-deco-corner.tr { top: 0; right: 0; }
.form-deco-corner.tr::before { top: 0; right: 0; width: 28px; height: 2px; }
.form-deco-corner.tr::after { top: 0; right: 0; width: 2px; height: 28px; }

.form-deco-corner.bl { bottom: 0; left: 0; }
.form-deco-corner.bl::before { bottom: 0; left: 0; width: 28px; height: 2px; }
.form-deco-corner.bl::after { bottom: 0; left: 0; width: 2px; height: 28px; }

.form-deco-corner.br { bottom: 0; right: 0; }
.form-deco-corner.br::before { bottom: 0; right: 0; width: 28px; height: 2px; }
.form-deco-corner.br::after { bottom: 0; right: 0; width: 2px; height: 28px; }

.form-container {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.form-title {
    text-align: center;
    margin-bottom: 28px;
    color: var(--primary-color);
    font-size: 28px;
    position: relative;
    padding-bottom: 12px;
}
.form-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 3px;
    background: var(--primary-color);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-color); font-size: 15px; }
.form-control { width: 100%; padding: 11px 15px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 16px; transition: var(--transition); }
.form-control:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
    background-color: white;
    min-height: 46px; height: 46px;
}
select.form-control:hover { border-color: var(--primary-color); }
.form-select-btn {
    width: 100%; padding: 11px 40px 11px 15px;
    border: 2px solid var(--border-color); border-radius: 8px;
    font-size: 16px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
    min-height: 46px; height: 46px;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    color: #999; user-select: none;
}
.form-select-btn:hover { border-color: var(--primary-color); }
.form-select-btn.has-value { color: var(--text-color); }
.form-select-btn i { color: var(--primary-color); font-size: 14px; flex-shrink: 0; }
.btn {
    display: inline-block; padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; border: none; border-radius: 30px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: var(--transition); text-align: center;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    text-decoration: none;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4); color: white; }
.btn-block { display: block; width: 100%; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.option-btn {
    padding: 10px 18px; border: 2px solid var(--border-color);
    background: white; border-radius: 8px; cursor: pointer;
    transition: var(--transition); font-size: 14px;
    min-width: 80px; text-align: center; flex: 1;
}
.option-btn:hover { border-color: var(--primary-color); background: rgba(200, 16, 46, 0.04); }
.option-btn.active { border-color: var(--primary-color); background: var(--primary-color); color: white; }

/* ===== 结果区域 ===== */
.result-section { padding: 30px 0; display: none; }
.result-container {
    background: white; border-radius: 15px; padding: 35px;
    box-shadow: var(--shadow); max-width: 800px; margin: 0 auto;
    position: relative; transition: max-width 0.3s ease;
}
.result-container.cards-mode { max-width: 960px; }
.result-title { text-align: center; margin-bottom: 25px; color: var(--primary-color); font-size: 26px; }
.result-content {
    line-height: 1.8; font-size: 16px;
    white-space: pre-wrap; padding: 20px;
    background: var(--light-color); border-radius: 10px;
}

/* ===== 卡片结果展示 ===== */
.result-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.result-header-text { text-align: center; font-size: 17px; font-weight: 700; color: var(--dark-color); margin-bottom: 24px; line-height: 1.6; }
.result-footer-text { margin-top: 28px; padding: 20px 24px; background: var(--light-color); border-radius: 12px; font-size: 14px; color: #666; line-height: 1.8; border-left: 4px solid var(--primary-color); }

.result-card { position: relative; border-radius: 18px; padding: 2px; background: var(--border-color); opacity: 0; transform: translateY(24px); animation: cardEnter 0.5s ease forwards; }
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.12s; }
.result-card:nth-child(3) { animation-delay: 0.19s; }
.result-card:nth-child(4) { animation-delay: 0.26s; }
.result-card:nth-child(5) { animation-delay: 0.33s; }
.result-card:nth-child(6) { animation-delay: 0.40s; }
@keyframes cardEnter { to { opacity: 1; transform: translateY(0); } }

.card-glow { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; z-index: 0; pointer-events: none; }
.card-glow::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 250%; padding-bottom: 250%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0%, var(--card-color) 3%, var(--card-color-alt) 7%, transparent 11%, transparent 100%);
    animation: glowSpin 3.5s linear infinite;
}
.card-glow::after {
    content: ''; position: absolute; inset: 0; border-radius: 18px;
    background: conic-gradient(from 180deg, transparent 0%, var(--card-color) 2%, var(--card-color-alt) 5%, transparent 9%, transparent 100%);
    animation: glowSpin 5s linear infinite reverse; opacity: 0.5;
}
@keyframes glowSpin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.card-inner { position: relative; z-index: 1; background: white; border-radius: 16px; overflow: hidden; }
.card-name-section { padding: 28px 24px 22px; text-align: center; position: relative; }
.card-name-section::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 80%; height: 24px; background: white; border-radius: 50% 50% 0 0; }
.card-element-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 10px; font-size: 20px; font-weight: 900; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); position: relative; z-index: 2; }
.card-name { font-size: 36px; font-weight: 900; letter-spacing: 8px; color: var(--dark-color); margin-bottom: 6px; position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-english { font-size: 13px; color: rgba(0,0,0,0.45); letter-spacing: 1.5px; font-weight: 500; position: relative; z-index: 2; }
.card-element-tag { display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; position: relative; z-index: 2; }
.card-details { padding: 22px 24px 24px; }
.card-detail-item { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
.card-detail-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.detail-label { font-weight: 700; color: var(--primary-color); font-size: 14px; margin-right: 4px; }
.detail-value { color: #555; font-size: 14px; line-height: 1.7; }

.card-loading { text-align: center; padding: 60px 20px; }
.card-loading-spinner { width: 44px; height: 44px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spinAnim 0.8s linear infinite; margin: 0 auto 18px; }
.card-loading p { color: #888; font-size: 15px; }
@keyframes spinAnim { 100% { transform: rotate(360deg); } }

/* ===== 特色优势区 ===== */
.features-section { padding: 45px 0 35px 0; background: white; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.feature-card {
    text-align: center; padding: 30px 20px; border-radius: 14px;
    background: var(--light-color); border: 1px solid var(--border-color);
    transition: var(--transition); position: relative; overflow: hidden;
}
/* 卡片顶部红色装饰线 */
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(200, 16, 46, 0.1); border-color: var(--primary-color); }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: white;
}
.feature-card h4 { color: var(--dark-color); margin-bottom: 10px; font-size: 17px; }
.feature-card p { color: #666; font-size: 14px; line-height: 1.7; }

/* ===== 知识贴士区 ===== */
.tips-section { padding: 45px 0 35px 0; background: var(--light-color); }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.tips-grid-5 { grid-template-columns: repeat(3, 1fr); }
.tips-grid-5 .tip-card:last-child { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
.tip-card {
    background: white; border-radius: 14px; padding: 24px;
    border: 1px solid var(--border-color); transition: var(--transition);
    display: flex; gap: 16px; align-items: flex-start;
}
.tip-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 24px rgba(200, 16, 46, 0.08); }
.tip-number { font-size: 32px; font-weight: 900; color: rgba(200, 16, 46, 0.12); line-height: 1; flex-shrink: 0; min-width: 45px; text-align: center; }
.tip-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; flex-shrink: 0; }
.tip-body h4 { color: var(--dark-color); margin-bottom: 6px; font-size: 16px; }
.tip-body p { color: #666; font-size: 13px; line-height: 1.7; }

/* ===== 案例展示区 ===== */
.cases-section { padding: 45px 0 35px 0; background: white; }
.cases-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }
.cases-tab { padding: 10px 28px; border: 2px solid var(--border-color); background: white; border-radius: 30px; cursor: pointer; font-size: 15px; font-weight: 600; color: #666; transition: var(--transition); }
.cases-tab:hover { border-color: var(--primary-color); color: var(--primary-color); }
.cases-tab.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: var(--light-color); border-radius: 14px; padding: 24px; border: 1px solid var(--border-color); transition: var(--transition); }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.case-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(200, 16, 46, 0.08); color: var(--primary-color); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.case-name { font-size: 22px; font-weight: 800; color: var(--dark-color); margin-bottom: 10px; letter-spacing: 2px; }
.case-desc { font-size: 14px; color: #666; line-height: 1.75; }

/* ===== 五行图示区 ===== */
.wuxing-section { padding: 45px 0 35px 0; background: var(--light-color); }
.wuxing-diagram { max-width: 600px; margin: 20px auto 0; position: relative; padding: 60px 40px; background: white; border-radius: 20px; box-shadow: var(--shadow); min-height: 420px; }
.wuxing-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; font-weight: 800; box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3); z-index: 2; }
.wuxing-item { position: absolute; text-align: center; z-index: 1; }
.wuxing-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: white; margin: 0 auto 8px; }
.wuxing-metal .wuxing-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.wuxing-water .wuxing-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.wuxing-wood .wuxing-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.wuxing-fire .wuxing-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.wuxing-earth .wuxing-icon { background: linear-gradient(135deg, #8e6d4b, #a0522d); }
.wuxing-label { font-size: 12px; color: #888; line-height: 1.5; max-width: 130px; }
.wuxing-arrows { text-align: center; margin-top: 20px; position: absolute; bottom: 16px; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wuxing-sheng span { display: inline-block; background: rgba(39, 174, 96, 0.1); color: #27ae60; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wuxing-ke span { display: inline-block; background: rgba(231, 76, 60, 0.1); color: #e74c3c; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ===== 改名流程区 ===== */
.rename-steps { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 20px auto 0; position: relative; }
.rename-steps::before { content: ''; position: absolute; left: 29px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(to bottom, var(--primary-color), rgba(200,16,46,0.12)); }
.rename-step { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; position: relative; }
.rename-step-icon { width: 58px; height: 58px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; font-weight: 800; flex-shrink: 0; z-index: 1; box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25); }
.rename-step h4 { color: var(--dark-color); margin-bottom: 4px; font-size: 17px; }
.rename-step p { color: #666; font-size: 14px; line-height: 1.7; }
.rename-notice { max-width: 700px; margin: 28px auto 0; background: rgba(200, 16, 46, 0.04); border: 1px solid rgba(200, 16, 46, 0.12); border-radius: 12px; padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
.notice-icon { color: var(--primary-color); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notice-text { font-size: 14px; color: #666; line-height: 1.75; }
.notice-text strong { color: var(--dark-color); }

/* ===== 底部CTA ===== */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: white; font-size: 34px; margin-bottom: 12px; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 16px; max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { background: white; color: var(--primary-color); box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: inline-flex; align-items: center; gap: 8px; }
.cta-buttons .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--primary-color); }

/* ===== 弹窗 ===== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: white; border-radius: 15px; width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; }
.modal-header { padding: 20px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border-radius: 15px 15px 0 0; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 20px; font-weight: 600; }
.modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { transform: rotate(90deg); }
.modal-body { padding: 30px; }
.date-selector, .location-selector, .type-selector { display: flex; flex-direction: column; gap: 20px; }
.date-row { display: flex; gap: 15px; flex-wrap: wrap; }
.date-row select, .location-selector select, .modal-body select {
    flex: 1; min-width: 120px; padding: 12px 40px 12px 15px;
    border: 2px solid var(--border-color); border-radius: 8px;
    font-size: 16px; height: 46px; min-height: 46px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center;
    background-size: 20px; background-color: white; cursor: pointer;
    transition: var(--transition);
}
.date-row select:hover, .location-selector select:hover, .modal-body select:hover { border-color: var(--primary-color); }
.date-row select:focus, .location-selector select:focus, .modal-body select:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
.location-selector { gap: 15px; }
.location-selector select { width: 100%; margin-bottom: 15px; }
.location-selector select:last-of-type { margin-bottom: 0; }
.calendar-type { display: flex; gap: 10px; margin-bottom: 15px; }
.calendar-type button { flex: 1; padding: 12px 15px; border: 2px solid var(--border-color); background: white; border-radius: 8px; cursor: pointer; transition: var(--transition); height: 46px; min-height: 46px; }
.calendar-type button.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
.option-item { padding: 15px; text-align: center; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: var(--transition); }
.option-item:hover { border-color: var(--primary-color); background: rgba(200, 16, 46, 0.04); transform: translateY(-3px); }

/* ===== 首页专用 ===== */
.stats-bar { background: white; padding: 30px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative; z-index: 10; margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: var(--border-color); }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary-color); line-height: 1.2; }
.stat-label { font-size: 14px; color: #888; margin-top: 4px; }

.services-section { padding: 40px 0 30px 0; background: var(--light-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 20px; }
.service-card { background: white; border-radius: 15px; padding: 28px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 2px solid transparent; text-decoration: none; color: inherit; display: block; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); border-color: var(--primary-color); }
.service-icon { width: 76px; height: 76px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: white; }
.service-card h3 { color: var(--dark-color); margin-bottom: 12px; font-size: 21px; }
.service-card p { color: #666; margin-bottom: 18px; line-height: 1.6; font-size: 14px; }
.service-features { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.service-features span { background: rgba(200, 16, 46, 0.08); color: var(--primary-color); padding: 4px 11px; border-radius: 20px; font-size: 12px; display: flex; align-items: center; gap: 4px; }

.process-section { padding: 40px 0 35px 0; background: white; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 25px; }
.process-step { text-align: center; position: relative; padding: 0 15px; }
.step-number { font-size: 48px; font-weight: 900; color: rgba(200, 16, 46, 0.08); line-height: 1; margin-bottom: 8px; }
.step-icon { width: 64px; height: 64px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: white; }
.step-connector { position: absolute; top: 90px; left: calc(50% + 40px); width: calc(100% - 40px); height: 2px; background: linear-gradient(to right, var(--primary-color), rgba(200,16,46,0.15)); }
.process-step:last-child .step-connector { display: none; }
.process-step h4 { color: var(--dark-color); margin-bottom: 6px; font-size: 17px; }
.process-step p { color: #888; font-size: 13px; line-height: 1.5; }

/* ===== 评价滚动区域 ===== */
.reviews-section { padding: 45px 0 35px 0; background: var(--light-color); overflow: hidden; }
.reviews-columns { display: flex; gap: 24px; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.reviews-col { flex: 1; overflow: hidden; height: 680px; position: relative; mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%); }
.reviews-col-track { display: flex; flex-direction: column; gap: 20px; animation: scrollUp 40s linear infinite; }
.reviews-col-track-reverse { animation: scrollUpReverse 44s linear infinite; }
.review-card { flex-shrink: 0; background: white; border-radius: 14px; padding: 22px; border: 1px solid var(--border-color); transition: var(--transition); }
.review-card:hover { border-color: var(--primary-color); box-shadow: 0 6px 20px rgba(200, 16, 46, 0.08); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: bold; flex-shrink: 0; }
.review-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.review-name { font-size: 15px; font-weight: 600; color: var(--dark-color); }
.review-location { font-size: 12px; color: #999; }
.review-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.review-stars i { font-size: 12px; color: #f7931e; }
.review-stars .far { color: #ddd; }
.review-text { font-size: 14px; line-height: 1.75; color: #555; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollUpReverse { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

.faq-section { padding: 40px 0 35px 0; background: white; }
.faq-grid { max-width: 800px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--light-color); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.faq-item.active { border-color: var(--primary-color); box-shadow: 0 4px 15px rgba(200, 16, 46, 0.08); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--dark-color); font-size: 15px; transition: var(--transition); }
.faq-question:hover { color: var(--primary-color); }
.faq-question i { font-size: 13px; color: #999; transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 22px 18px; font-size: 14px; color: #666; line-height: 1.75; }

.advantages-section { padding: 40px 0 35px 0; background: var(--light-color); }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 35px; margin-top: 22px; }
.advantage-item { text-align: center; }
.advantage-icon { width: 70px; height: 70px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: white; }
.advantage-item h4 { color: var(--dark-color); margin-bottom: 6px; font-size: 18px; }
.advantage-item p { color: #666; line-height: 1.6; font-size: 14px; }

/* ===== 页脚 ===== */
footer { background: var(--dark-color); color: white; text-align: center; padding: 25px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-size: 24px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: white; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary-color); }
.copyright { margin-top: 15px; font-size: 14px; opacity: 0.7; }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ===== 无障碍：减少动画 ===== */
@media (prefers-reduced-motion: reduce) {
    .card-glow::before, .card-glow::after { animation: none; }
    .result-card { animation: none; opacity: 1; transform: none; }
    .reviews-col-track, .reviews-col-track-reverse { animation: none; }
    .hero h1, .hero p, .hero-buttons { animation: none; }
    .deco-cloud, .deco-sparkle { animation: none !important; }
    .feature-card::before { transition: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
    .form-container { padding: 30px 20px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .step-connector { display: none !important; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--primary-color); flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item:nth-child(2)::after { display: none; }
    .stat-number { font-size: 30px; }
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .cta-content h2 { font-size: 26px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .date-row { flex-direction: column; }
    .date-row select, .location-selector select, .modal-body select { width: 100%; }
    .footer-content { flex-direction: column; text-align: center; }
    .section-title { font-size: 26px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .tips-grid { grid-template-columns: 1fr; }
    .tips-grid-5 .tip-card:last-child { max-width: 100%; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cases-grid { grid-template-columns: 1fr; }
    .wuxing-diagram { min-height: auto; padding: 50px 20px; }
    .wuxing-item { position: relative !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; margin-bottom: 16px; }
    .wuxing-center { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 20px; }
    .wuxing-arrows { position: relative; bottom: auto; left: auto; width: auto; margin-top: 16px; }
    .reviews-columns { gap: 12px; padding: 0 12px; }
    .reviews-col { height: 400px; mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%); }
    .reviews-col-track { animation: scrollUp 35s linear infinite; }
    .reviews-col-track-reverse { animation: scrollUpReverse 38s linear infinite; }
    .review-card { padding: 16px; }
    .review-avatar { width: 36px; height: 36px; font-size: 15px; }
    .review-header { gap: 10px; margin-bottom: 8px; }
    .review-text { font-size: 13px; }
    .result-cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .result-container.cards-mode { max-width: 800px; }
    .card-name { font-size: 30px; letter-spacing: 6px; }
    /* 装饰元素响应式 */
    .dc-1, .dc-4 { display: none; }
    .form-fu-watermark { font-size: 180px; }
    .deco-sparkle { width: 3px; height: 3px; }
}
@media (max-width: 576px) {
    .hero { padding: 100px 0 35px 0; }
    .hero-sub { padding: 100px 0 15px 0; }
    .hero h1 { font-size: 26px; }
    .hero-text { font-size: 20px; }
    .form-container { padding: 20px 15px; }
    .btn-group { flex-direction: column; }
    .option-btn { width: 100%; min-width: 0; }
    .advantages-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .faq-question { padding: 15px 18px; font-size: 14px; }
    .faq-answer p { padding: 0 18px 15px; font-size: 13px; }
    .features-grid { grid-template-columns: 1fr; }
    .tip-card { flex-direction: column; gap: 10px; }
    .tip-number, .tip-icon { min-width: auto; }
    .rename-step { flex-direction: column; align-items: center; text-align: center; }
    .rename-steps::before { display: none; }
    .reviews-columns { gap: 8px; padding: 0 8px; }
    .reviews-col { height: 350px; mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%); }
    .reviews-col-track { animation: scrollUp 28s linear infinite; }
    .reviews-col-track-reverse { animation: scrollUpReverse 31s linear infinite; }
    .review-card { padding: 12px; }
    .review-header { gap: 8px; margin-bottom: 6px; }
    .review-avatar { width: 32px; height: 32px; font-size: 14px; }
    .review-name { font-size: 13px; }
    .review-location { font-size: 11px; }
    .review-stars { margin-bottom: 6px; }
    .review-stars i { font-size: 11px; }
    .review-text { font-size: 12px; line-height: 1.65; }
    .card-name { font-size: 26px; letter-spacing: 4px; }
    .card-name-section { padding: 22px 18px 18px; }
    .card-details { padding: 18px; }
    /* 装饰元素小屏隐藏 */
    .dc-2, .dc-3, .dc-5 { display: none; }
    .deco-sparkle { display: none; }
    .form-fu-watermark { font-size: 120px; }
    .form-deco-corner { width: 18px; height: 18px; }
    .form-deco-corner.tl::before, .form-deco-corner.tr::before, .form-deco-corner.bl::before, .form-deco-corner.br::before { width: 18px; }
    .form-deco-corner.tl::after, .form-deco-corner.tr::after, .form-deco-corner.bl::after, .form-deco-corner.br::after { height: 18px; }
}
