@charset "UTF-8";

/**
 * 🎨 现代国学风格 - 起名网站前台样式
 * 融合传统文化与现代设计美学
 */

/* ==================== 字体引入 ==================== */
/* 使用免费可商用字体 - 使用国内镜像加速 */
@import url('https://fonts.font.im/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ==================== 全局变量 - 国学配色 ==================== */
:root {
    /* 国学传统色 */
    --ink-blue: #1a2a3a;        /* 黛蓝 - 主色调 */
    --moon-white: #f0f4f8;      /* 月白 - 背景色 */
    --dark-gold: #b9a16b;       /* 暗金 - 强调色 */
    --ochre: #9c6e5a;           /* 赭石 - 辅助色 */
    --ink-black: #0f1419;       /* 墨黑 */
    --jade-green: #5a7d6f;      /* 玉石绿 */
    --crimson-red: #c84941;     /* 朱砂红 */
    --mist-gray: #d4d8de;       /* 烟雾灰 */
    
    /* 渐变色 */
    --gradient-gold: linear-gradient(135deg, #b9a16b, #d4af37);
    --gradient-ink: linear-gradient(135deg, #1a2a3a, #2d4456);
    --gradient-mist: linear-gradient(180deg, rgba(240,244,248,0.98), rgba(240,244,248,0.95));
    
    /* 阴影效果 */
    --shadow-ink: 0 8px 32px rgba(26, 42, 58, 0.12);
    --shadow-ink-lg: 0 16px 48px rgba(26, 42, 58, 0.16);
    --shadow-gold-glow: 0 0 40px rgba(185, 161, 107, 0.3);
    --shadow-soft: 0 4px 16px rgba(15, 20, 25, 0.08);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 毛玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--ink-blue);
    background: var(--moon-white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 水墨晕染背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(185, 161, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 42, 58, 0.06) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
    animation: mistFloat 30s ease-in-out infinite;
}

@keyframes mistFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.02); opacity: 0.9; }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px;
    position: relative;
    z-index: 1;
}

/* ==================== 头部 - 吉祥喜庆 ==================== */
.header {
    background: linear-gradient(135deg, #b9a16b 0%, #d4af37 50%, #9c6e5a 100%);
    color: white;
    padding: 60px 50px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(185, 161, 107, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 装饰性印章元素 */
.header::after {
    content: '吉';
    position: absolute;
    top: 30px;
    right: 40px;
    width: 80px;
    height: 80px;
    border: 3px solid #c23a3a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 42px;
    font-weight: 900;
    color: #c23a3a;
    opacity: 0.75;
    transform: rotate(-8deg);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: headerPulse 8s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, -3%) scale(1.05); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                 0 2px 8px rgba(255, 255, 255, 0.3);
    letter-spacing: 6px;
    color: white;
    position: relative;
}

.tagline {
    font-size: 16px;
    opacity: 0.92;
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* ==================== 主要内容区 ==================== */
.main-content {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 介绍区域 ==================== */
.intro-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 44px;
    color: var(--ink-blue);
    margin-bottom: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.intro-text {
    font-size: 18px;
    color: var(--ink-blue);
    opacity: 0.85;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--dark-gold);
    font-weight: 600;
    padding: 2px 6px;
    background: linear-gradient(135deg, rgba(185, 161, 107, 0.12), rgba(212, 175, 55, 0.08));
    border-radius: 4px;
}

/* ==================== 表单卡片 - 毛玻璃效果 ==================== */
.naming-form-section {
    margin-bottom: 30px;
}

.form-card {
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    box-shadow: 0 4px 16px rgba(26, 42, 58, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

/* 顶部装饰线 */
.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
}

/* 印章装饰 */
.form-card::after {
    content: '吉';
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border: 2px solid #c23a3a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 32px;
    font-weight: 900;
    color: #c23a3a;
    opacity: 0.2;
    transform: rotate(5deg);
}

.form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(26, 42, 58, 0.08);
}

.form-title {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 36px;
    color: var(--ink-blue);
    margin-bottom: 48px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 24px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
}

.naming-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--ink-blue);
    font-size: 16px;
    letter-spacing: 1px;
}

.label-text {
    font-size: 15px;
}

.required {
    color: var(--crimson-red);
    margin-left: 4px;
}

.optional {
    color: var(--ochre);
    font-weight: 400;
    font-size: 14px;
    margin-left: 6px;
}

/* 表单输入框 - 水墨风格 */
.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--mist-gray);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-blue);
    letter-spacing: 0.5px;
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--ochre);
    background: rgba(255, 255, 255, 0.95);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--dark-gold);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(185, 161, 107, 0.12),
                0 8px 24px rgba(26, 42, 58, 0.08);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    line-height: 1.8;
}

.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--ochre);
    margin-top: 6px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.char-count span {
    font-weight: 600;
    color: var(--dark-gold);
}

/* 单选按钮组 - 国学卡片风格 */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 16px 28px;
    border: 2px solid var(--mist-gray);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.radio-label:hover {
    border-color: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.radio-label:hover::before {
    opacity: 0.08;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    accent-color: var(--dark-gold);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--dark-gold);
    background: linear-gradient(135deg, rgba(185, 161, 107, 0.15), rgba(212, 175, 55, 0.08));
    box-shadow: 0 0 0 2px rgba(185, 161, 107, 0.2), var(--shadow-soft);
}

.radio-label:has(input[type="radio"]:checked) .radio-text {
    color: var(--dark-gold);
    font-weight: 700;
}

.radio-text {
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* ==================== 提交按钮 - 吉祥渐变 ==================== */
.submit-btn {
    width: 100%;
    padding: 20px 48px;
    background: linear-gradient(135deg, #b9a16b 0%, #d4af37 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    box-shadow: 0 12px 32px rgba(185, 161, 107, 0.4),
                0 4px 16px rgba(185, 161, 107, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

/* 光芒效果 */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 400px;
    height: 400px;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.submit-btn:hover::after {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(185, 161, 107, 0.5),
                0 0 60px rgba(212, 175, 55, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #d4af37, #b9a16b);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.99);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    animation: goldenPulse 1.5s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% { 
        box-shadow: 0 12px 32px rgba(185, 161, 107, 0.4), 0 0 40px rgba(185, 161, 107, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 16px 48px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.5);
        transform: scale(1.02);
    }
}

.btn-icon {
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-btn:hover .btn-icon {
    transform: translateX(10px) scale(1.2);
}

.btn-text {
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* ==================== 进度区域 - 卷轴展开效果 ==================== */
.progress-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-100%);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.progress-card {
    background: linear-gradient(135deg, rgba(185, 161, 107, 0.98), rgba(212, 175, 55, 0.98));
    border-radius: 0;
    padding: 24px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(30px);
    border-bottom: 3px solid rgba(194, 58, 58, 0.6);
    position: relative;
}

/* 装饰性印章 */
.progress-card::before {
    content: '吉';
    position: absolute;
    top: 12px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 2px solid #c23a3a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 26px;
    font-weight: 900;
    color: #c23a3a;
    opacity: 0.5;
    transform: rotate(-8deg);
}

.progress-title {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    overflow: hidden;
    margin: 0 auto 12px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c23a3a, #ff5757);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(194, 58, 58, 0.6);
    animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* 进度条光泽效果 */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 特色区域 ==================== */
.features-section {
    margin-bottom: 30px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background: var(--glass-bg);
    padding: 48px 36px;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(26, 42, 58, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(26, 42, 58, 0.08);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 28px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 8px 16px rgba(26, 42, 58, 0.15));
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-title {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-blue);
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.feature-desc {
    color: var(--ink-blue);
    opacity: 0.75;
    line-height: 1.9;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--ink-blue);
    opacity: 0.6;
    margin-top: 60px;
    letter-spacing: 1px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .header {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .header::after {
        width: 50px;
        height: 50px;
        font-size: 28px;
        top: 20px;
        right: 20px;
    }

    .logo {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .tagline {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .progress-card {
        padding: 16px 20px;
    }
    
    .progress-card::before {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 16px;
    }
    
    .progress-title {
        font-size: 16px;
        margin-bottom: 12px;
        letter-spacing: 2px;
    }
    
    .progress-bar {
        max-width: 100%;
        height: 10px;
    }
    
    .progress-text {
        font-size: 12px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .intro-text {
        font-size: 16px;
    }

    .form-card {
        padding: 40px 28px;
    }
    
    .form-card::after {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .form-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .submit-btn {
        padding: 18px 36px;
        font-size: 18px;
        letter-spacing: 2px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body::before {
        display: none;
    }
}
