/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 - 维也纳古典配色 */
:root {
    --primary-color: #1A1A1A; /* 深黑色，体现古典庄严 */
    --secondary-color: #D4AF37; /* 维也纳金色，体现高贵 */
    --accent-color: #8B0000; /* 深红色，体现古典优雅 */
    --background-gradient: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2C1810 100%);
    --card-background: rgba(26, 26, 26, 0.95);
    --card-border: rgba(212, 175, 55, 0.2);
    --text-primary: #F5F5DC; /* 米色，古典纸张色 */
    --text-secondary: #D4AF37; /* 金色，次要文字 */
    --text-muted: #A0A0A0; /* 灰色，辅助文字 */
    --input-background: rgba(42, 42, 42, 0.8);
    --input-border: rgba(212, 175, 55, 0.3);
    --input-focus: rgba(212, 175, 55, 0.6);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 字体设置 */
body {
    font-family: 'Noto Serif SC', serif;
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 曲目要求显示区样式 - 与页面背景一致 */
.requirements-display {
    background-color: var(--bg-color);
    background-image: url('bg-texture.png');
    background-repeat: repeat;
    background-attachment: fixed;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin: 0;
    box-shadow: none;
}

/* 初始提示信息样式 */
.initial-message {
    text-align: center;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
    padding: 15px 0;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
}

/* 组别曲目要求样式 - 与页面其他栏目字体一致 */
.group-requirements h4 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: none;
    padding-bottom: 0;
    font-family: 'Times New Roman', serif;
}

.group-requirements p {
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.6;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
}

.group-requirements p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .requirements-display {
        padding: 15px;
        margin: 10px 0;
    }
    
    .group-requirements h4 {
        font-size: 1.2em;
    }
}

/* 选取曲目要求信息表样式 */
.repertoire-requirements {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.repertoire-requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.repertoire-requirements h3 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.repertoire-requirements h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.6;
}

.requirement-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.requirement-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.requirement-group h4 {
    color: var(--text-secondary);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sub-group {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.sub-group:last-child {
    margin-bottom: 0;
}

.sub-group h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.repertoire-requirements p {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.repertoire-requirements p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .repertoire-requirements {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .repertoire-requirements h3 {
        font-size: 1.5rem;
    }
    
    .requirement-group h4 {
        font-size: 1.2rem;
    }
    
    .sub-group {
        margin-left: 10px;
        padding-left: 10px;
    }
}

/* 添加古典纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.03) 10px,
            rgba(212, 175, 55, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(139, 0, 0, 0.02) 10px,
            rgba(139, 0, 0, 0.02) 20px
        );
    pointer-events: none;
    z-index: 1;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.piano-keys {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(90deg, 
        #1A1A1A 0%, #1A1A1A 8%, #D4AF37 8%, #D4AF37 10%,
        #1A1A1A 10%, #1A1A1A 18%, #D4AF37 18%, #D4AF37 20%,
        #1A1A1A 20%, #1A1A1A 28%, #D4AF37 28%, #D4AF37 30%,
        #1A1A1A 30%, #1A1A1A 38%, #D4AF37 38%, #D4AF37 40%,
        #1A1A1A 40%, #1A1A1A 48%, #D4AF37 48%, #D4AF37 50%,
        #1A1A1A 50%, #1A1A1A 58%, #D4AF37 58%, #D4AF37 60%,
        #1A1A1A 60%, #1A1A1A 68%, #D4AF37 68%, #D4AF37 70%,
        #1A1A1A 70%, #1A1A1A 78%, #D4AF37 78%, #D4AF37 80%,
        #1A1A1A 80%, #1A1A1A 88%, #D4AF37 88%, #D4AF37 90%,
        #1A1A1A 90%, #1A1A1A 98%, #D4AF37 98%, #D4AF37 100%
    );
    opacity: 0.15;
    transform: perspective(500px) rotateX(45deg);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.musical-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(139, 0, 0, 0.06) 3px, transparent 3px),
        radial-gradient(circle at 40% 60%, rgba(212, 175, 55, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(139, 0, 0, 0.07) 4px, transparent 4px);
    background-size: 200px 200px, 300px 300px, 250px 250px, 350px 350px;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(20px) rotate(-2deg); }
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.header-content {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.header-text {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}



.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.region {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.form-container {
    background: var(--card-background);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-border);
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 20%, 
        var(--accent-color) 50%, 
        var(--secondary-color) 80%, 
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

/* 表单样式 */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 优化表单行布局，增加响应式设计 */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: start;
}

/* 确保grid布局在所有屏幕尺寸下表现一致 */
@media (max-width: 1200px) {
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 确保在小屏幕上更好的布局 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 表单组样式优化 */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    position: relative;
    transition: transform 0.3s ease;
}

/* 表单组悬停效果 */
.form-group:hover {
    transform: translateY(-2px);
}

/* 必填项标记样式 */
.form-group label::after {
    content: attr(data-required);
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 4px;
}

/* 曲目要求信息表样式 */
.repertoire-requirements {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-medium);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.repertoire-requirements:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.requirements-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.requirements-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* 要求部分样式 */
.requirement-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.requirement-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '🎵';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* 子部分样式 */
.sub-section {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sub-title {
    color: var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 文本样式 */
.requirement-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* 列表样式 */
.requirement-list {
    padding-left: 25px;
    margin-bottom: 15px;
}

.requirement-list li {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
}

.requirement-list li:last-child {
    margin-bottom: 0;
}

/* 高亮状态样式 - 用于联动效果 */
.requirement-section.highlight {
    background: linear-gradient(135deg, var(--accent-light), rgba(255, 255, 255, 0.9));
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    transform: scale(1.02);
}

.sub-section.highlight {
    border-left-color: var(--accent-color);
    background: rgba(255, 105, 180, 0.05);
    padding: 15px 20px;
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .repertoire-requirements {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .requirements-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .requirement-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
}

/* 曲目要求显示栏样式 - 与页面背景和字体完全统一 */
.requirements-display {
    /* 与页面背景完全一致 */
    background: transparent;
    /* 移除特殊边框和阴影 */
    border: none;
    border-radius: 0;
    padding: 15px 0;
    margin: 10px 0;
    min-height: auto;
    box-shadow: none;
    /* 移除所有特殊效果 */
    backdrop-filter: none;
    position: static;
    transition: none;
}

/* 移除装饰条 */
.requirements-display::before {
    display: none;
}

.placeholder-text {
    /* 使用页面默认样式 */
    color: inherit;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    /* 移除特殊字体设置，继承页面默认字体 */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

#requirements-content {
    display: none;
}

/* 曲目要求内容样式 - 完全继承页面样式 */
.requirement-section {
    margin-bottom: 20px;
}

.requirement-section h3,
.requirements-display h4 {
    /* 完全继承页面标题样式 */
    color: inherit;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: inherit;
    font-weight: inherit;
    padding-bottom: 0;
    border-bottom: none;
    font-family: inherit;
    animation: none;
}

.sub-section,
.requirements-display h5 {
    margin-left: 20px;
    margin-bottom: 15px;
    color: inherit;
    margin-top: 10px;
    font-size: inherit;
    font-weight: inherit;
    animation: none;
}

.sub-section p,
.requirements-display p {
    /* 继承页面段落样式 */
    color: inherit;
    margin-bottom: 10px;
    line-height: inherit;
    font-family: inherit;
    animation: none;
}

.sub-section ul,
.sub-section ol,
.requirements-display ul,
.requirements-display ol {
    /* 继承页面列表样式 */
    padding-left: 20px;
    margin-bottom: 15px;
    color: inherit;
    animation: none;
}

.sub-section li,
.requirements-display li {
    margin-bottom: 8px;
    color: inherit;
    line-height: inherit;
    animation: none;
}

/* 移除悬停效果 */
.requirements-display:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit;
}

/* 响应式设计 - 适配移动设备 */
@media (max-width: 768px) {
    .requirements-display {
        padding: 15px;
        margin: 15px 0;
    }
    
    .requirements-display h4 {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }
    
    .requirements-display h5 {
        font-size: 1rem;
        margin-top: 14px;
    }
    
    .placeholder-text {
        padding: 20px 0;
        font-size: 0.9rem;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-group input, 
.form-group select, 
.form-group input[type="date"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px 20px;
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: inherit;
    background: var(--input-background);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    /* 强制限制尺寸，防止不同类型输入框渲染差异 */
    flex-shrink: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 特定ID选择器，确保这三个输入框宽度与其他输入框完全一致 */
#group, #idCard, #birthDate {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    /* 强制覆盖浏览器默认样式 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* 确保在所有浏览器中保持一致宽度 */
    flex: 0 1 100%;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* 确保下拉菜单的宽度与输入框一致 */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' 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 15px center;
    background-size: 20px;
}

/* 为IE浏览器提供兼容性 */
.form-group select::-ms-expand {
    display: none;
}

/* 输入框和日期选择器的特定样式 */
.form-group input, .form-group input[type="date"] {
    width: 100%;
}

/* 表单组容器样式，确保所有元素对齐 */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.form-group select option {
    background: var(--primary-color);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--input-focus);
    background: rgba(42, 42, 42, 0.95);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--secondary-color);
    background: rgba(42, 42, 42, 0.9);
    box-shadow: var(--shadow-gold);
}

/* 按钮样式 */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn,
.reset-btn {
    position: relative;
    padding: 18px 40px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--secondary-color);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover .btn-decoration {
    width: 300px;
    height: 300px;
}

.reset-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--input-border);
}

.reset-btn:hover {
    border-color: var(--secondary-color);
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* 页脚样式 */
.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.footer-content {
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 50%, 
        transparent 100%);
    animation: shimmer 5s ease-in-out infinite;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 5px 0;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 动画效果 */
@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);
    }
}

/* 收银台界面样式 */
.cashier-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.cashier-container {
    background: var(--card-background);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-large);
    position: relative;
    overflow: hidden;
}

.cashier-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    animation: shimmer 3s infinite;
}

.cashier-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.cashier-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.cashier-header h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

.cashier-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 订单信息确认 */
.order-summary {
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.order-summary h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.order-summary h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--card-background);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* 支付信息 */
.payment-section {
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.payment-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.payment-section h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.payment-method {
    text-align: center;
    padding: 20px;
    background: var(--card-background);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.payment-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

.payment-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-method h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.payment-method p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.payment-amount {
    text-align: center;
    padding: 20px;
    background: var(--card-background);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
}

.payment-amount p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.payment-amount .amount {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 操作按钮 */
.cashier-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.back-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--input-border);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.confirm-payment-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
}

.confirm-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* 备用邮件弹窗样式 */
.fallback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fallback-modal.show {
    opacity: 1;
    visibility: visible;
}

.fallback-modal-content {
    background: var(--card-background);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(15px);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.fallback-modal.show .fallback-modal-content {
    transform: scale(1);
}

.fallback-modal-content h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.fallback-modal-content p {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-content {
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.email-content pre {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.fallback-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.fallback-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    min-width: 140px;
    justify-content: center;
}

.copy-btn {
    background: linear-gradient(135deg, var(--secondary-color), #B8941F);
    color: var(--primary-color);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.mailto-btn {
    background: linear-gradient(135deg, var(--accent-color), #6B0000);
    color: var(--text-primary);
}

.mailto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.close-btn {
    background: var(--input-background);
    color: var(--text-secondary);
    border: 1px solid var(--input-border);
}

.close-btn:hover {
    background: var(--input-focus);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fallback-modal-content {
        margin: 20px;
        padding: 20px;
        max-width: calc(100% - 40px);
    }
    
    .fallback-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fallback-actions button {
        min-width: auto;
    }
    
    .email-content {
        max-height: 200px;
        padding: 15px;
    }
    
    .fallback-modal-content h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 768px) {
    .cashier-container {
        padding: 30px 20px;
    }
    
    .cashier-header h2 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .cashier-actions {
        flex-direction: column;
    }
    
    .back-btn,
    .confirm-payment-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cashier-section {
        padding: 20px 15px;
    }
    
    .cashier-container {
        padding: 25px 15px;
    }
    
    .payment-qr {
        width: 120px;
        height: 120px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item span {
        max-width: 100%;
        text-align: left;
    }
}

/* 支付结果确认界面样式 */
.payment-confirmation-section {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-container {
    background: var(--container-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.confirmation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.confirmation-header {
    margin-bottom: 40px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-medium);
}

.confirmation-icon i {
    font-size: 2rem;
    color: var(--text-primary);
}

.confirmation-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.confirmation-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.confirmation-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn,
.failed-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 30px;
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.success-btn {
    background: linear-gradient(135deg, var(--secondary-color), #B8941F);
    color: var(--primary-color);
}

.success-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.failed-btn {
    background: linear-gradient(135deg, var(--accent-color), #6B0000);
    color: var(--text-primary);
}

.failed-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4);
}

.success-btn i,
.failed-btn i {
    font-size: 2.5rem;
}

.confirmation-help {
    padding: 20px;
    background: var(--input-background);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--secondary-color);
}

.confirmation-help p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirmation-help i {
    color: var(--secondary-color);
}

/* 支付成功感谢界面样式 */
.payment-success-section {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-container {
    background: var(--container-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    padding: 50px 40px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.success-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-medium);
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon i {
    font-size: 3rem;
    color: var(--text-primary);
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-medium);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    }
}

.success-container h2 {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--input-background);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--secondary-color);
}

.success-actions {
    display: flex;
    justify-content: center;
}

.finish-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    box-shadow: var(--shadow-medium);
}

.finish-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .confirmation-container,
    .success-container {
        margin: 20px;
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }
    
    .confirmation-options {
        flex-direction: column;
        align-items: center;
    }
    
    .success-btn,
    .failed-btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .confirmation-header h2,
    .success-container h2 {
        font-size: 1.8rem;
    }
    
    .success-message {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .confirmation-icon {
        width: 60px;
        height: 60px;
    }
    
    .confirmation-icon i {
        font-size: 1.5rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .payment-confirmation-section,
    .payment-success-section {
        padding: 20px 15px;
    }
    
    .confirmation-container,
    .success-container {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .confirmation-header h2,
    .success-container h2 {
        font-size: 1.6rem;
    }
    
    .success-btn,
    .failed-btn {
        padding: 20px 25px;
        min-width: 200px;
    }
    
    .success-message {
        font-size: 1rem;
        padding: 12px;
    }
    
    .finish-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .piano-keys {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .piano-icon {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* 表单验证样式 */
.form-group input:invalid:focus {
    border-color: #E74C3C;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group input:valid:focus {
    border-color: #27AE60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}