/* ===== 全局重置 & 字体 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    background: #f8f5f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #3e3a39;
    line-height: 1.6;
}

/* ===== 容器 & 卡片 ===== */
.container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    padding: 40px 45px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center bottom;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ===== 动效关键帧 ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.2); }
    100% { box-shadow: 0 0 0 12px rgba(212, 163, 115, 0); }
}

/* ===== 标题 & 文字 ===== */
h1, h2 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #3e3a39;
    margin-bottom: 8px;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }

.subtitle {
    color: #8a8582;
    font-size: 1rem;
    margin-bottom: 28px;
    border-left: 3px solid #d4a373;
    padding-left: 14px;
}

hr {
    border: none;
    border-top: 1px solid #e8e2da;
    margin: 26px 0;
}

/* ===== 表单元素 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 450;
    font-size: 0.95rem;
    color: #4a4644;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd6cd;
    border-radius: 16px;
    font-size: 1rem;
    background: #fcfaf8;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    color: #2d2a28;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #d4a373;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.15);
    transform: scale(1.01);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #b8b0a8;
    font-weight: 300;
}

/* ===== 单选 / 行内 ===== */
.inline-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: center;
    padding-top: 4px;
}
.inline-radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s;
}
.inline-radio label:hover {
    color: #d4a373;
}
.inline-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #d4a373;
    cursor: pointer;
    transition: transform 0.15s;
}
.inline-radio input[type="radio"]:hover {
    transform: scale(1.1);
}

/* ===== 按钮 ===== */
.btn-primary {
    background: #d4a373;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
    display: inline-block;
}
.btn-primary:hover {
    background: #c4926a;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(212, 163, 115, 0.35);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: #e8e2da;
    color: #4a4644;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover {
    background: #ddd6cd;
    transform: translateY(-1px);
}

/* ===== 状态提示 ===== */
.error {
    background: #f9edea;
    color: #b05b4b;
    padding: 14px 20px;
    border-radius: 20px;
    margin-bottom: 22px;
    border-left: 5px solid #cb997e;
    font-size: 0.95rem;
    animation: fadeUp 0.4s ease;
}

.success {
    background: #edf3eb;
    color: #5b7a5a;
    padding: 14px 20px;
    border-radius: 20px;
    border-left: 5px solid #8aa889;
}

/* ===== 表格（后台） ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: 16px;
}
th {
    background: #f3efe9;
    color: #4a4644;
    font-weight: 500;
    padding: 12px 16px;
    text-align: left;
    border-radius: 16px 16px 0 0;
}
td {
    background: #fcfaf8;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s;
}
tr:hover td {
    background: #f6f1eb;
}
.status-submitted {
    color: #6b705c;
    font-weight: 500;
}
.status-pending {
    color: #cb997e;
    font-weight: 500;
}

/* ===== 搜索栏 ===== */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}
.search-bar input[type="text"] {
    flex: 1 1 200px;
    padding: 10px 16px;
    border: 1px solid #ddd6cd;
    border-radius: 40px;
    background: #fcfaf8;
    transition: border 0.2s;
}
.search-bar input[type="text"]:focus {
    border-color: #d4a373;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.search-bar button {
    background: #d4a373;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.search-bar button:hover {
    background: #c4926a;
    transform: scale(1.02);
}
.search-bar a {
    color: #6b705c;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}
.search-bar a:hover {
    background: #e8e2da;
}
.btn-export {
    background: #6b705c;
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-export:hover {
    background: #5a5f4d;
    transform: scale(1.02);
}

/* ===== 自适应 ===== */
@media (max-width: 640px) {
    .card {
        padding: 24px 18px;
        border-radius: 20px;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .inline-radio {
        gap: 14px;
    }
    table {
        font-size: 0.85rem;
    }
    th, td {
        padding: 8px 8px;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-export {
        text-align: center;
    }
}

/* ===== 额外微交互 ===== */
.fade-delay-1 { animation-delay: 0.05s; }
.fade-delay-2 { animation-delay: 0.10s; }
.fade-delay-3 { animation-delay: 0.15s; }

/* 选择框自定义 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8b0a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}