/* ========== 基础样式 · 青花瓷韵版 ========== */
:root {
    /* ===== 青花主色系 - 钴蓝 ===== */
    --primary-color: #2a4b7c;      /* 主钴蓝（青花标准色） */
    --primary-hover: #1a3a5c;       /* 深钴蓝（青花发色最深） */
    --primary-light: #4a6f9e;       /* 浅钴蓝 */
    --primary-soft: #c5d5e8;        /* 极淡蓝（釉下晕染感） */
    
    /* ===== 釉色系（白/灰蓝） ===== */
    --deep: #2c3e4e;                /* 深灰蓝（替代深褐） */
    --deep-medium: #3a4a5a;
    --deep-warm: #4a5a6a;
    
    /* ===== 背景色系（釉白/仿古瓷） ===== */
    --bg-page: #f5f7fa;             /* 主背景 · 釉白色 */
    --bg-secondary: #faf8f2;        /* 次背景 · 暖釉白 */
    --bg-card: #ffffff;             /* 卡片白 */
    --bg-dark: #2c3e4e;             /* 深色背景 · 灰蓝 */
    
    /* ===== 点缀色 ===== */
    --accent-red: #b84c3c;          /* 朱砂红（可选点缀） */
    --accent-red-hover: #9e3d2f;
    --accent-indigo: #2a4b7c;       /* 青花蓝 */
    
    /* ===== 文字色 ===== */
    --text-dark: #2c3e4e;           /* 深灰蓝文字 */
    --text-primary: #4a627a;        /* 正文 · 灰蓝 */
    --text-secondary: #6b829a;      /* 次要文字 */
    --text-muted: #8ba0b5;          /* 辅助文字 */
    --text-on-dark: #e8f0f8;        /* 深色背景上的文字 */
    --text-on-dark-muted: #a8c0d8;
    
    /* ===== 边框/分割线 ===== */
    --border-light: #dce5ef;        /* 浅边框 · 淡蓝 */
    --border-gold: #c9ad6a;         /* 金色边框（青花加彩点缀） */
    
    /* ===== 成功/功能色 ===== */
    --success-color: #4a7c6b;       /* 青绿 */
    --success-hover: #3a6a5a;
    --warning: #c4883a;
    --error: #b84c3c;
    --info: #5b7a8c;
    
    /* ===== 功能图标色 ===== */
    --location-color: #0d6efd;
    --gender-male-color: #3b4b5e;       /* 黛蓝 */
    --gender-female-color: #b84c3c;     /* 朱砂红 */
    --gender-male-light: #dce3ea;      /* 浅黛蓝（标签背景） */
    --gender-female-light: #f5dede;    /* 浅朱砂（标签背景） */
    
    /* ===== 按钮样式 ===== */
    --btn-height: 50px;
    --btn-font-size: 16px;
    --btn-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-page);
    padding: 20px 15px;

}

/* 青花瓷纹样装饰背景（可选） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232a4b7c' d='M20,20 Q30,10 40,20 Q50,30 60,20 Q70,10 80,20' stroke='none'/%3E%3Ccircle cx='50' cy='50' r='8' fill='%232a4b7c'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ========== 页面标题 ========== */
.page-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.page-header-bar .page-title {
    margin-bottom: 0;
}

.page-header-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.page-header-link:hover {
    text-decoration: underline;
}

.add-record-tag {
    display: inline-block;
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-record-tag:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.empty-add-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(42, 75, 124, 0.2);
}

.empty-add-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 75, 124, 0.3);
}

/* ========== 个人信息卡片样式 ========== */
.profile-card-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(42, 75, 124, 0.08);
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, border-radius 0.3s ease;
}

.profile-card.swiped {
    transform: translateX(-80px);
    border-radius: 16px 0 0 16px;
}

.profile-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: stretch;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
}

.profile-actions .action-btn {
    flex: 1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}

.profile-actions .action-btn:hover {
    transform: scale(1.1);
}

.profile-actions .logout-btn {
    background: var(--error);
}

.avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 8px;
}

.avatar-container {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
    border: 2px solid var(--border-gold);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    object-fit: cover;
}

.gender-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gender-female-color);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(42, 75, 124, 0.4);
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gender-badge.male {
    background: var(--gender-male-color);
    box-shadow: 0 4px 12px rgba(59, 75, 94, 0.4);
}

.name-text-gender-female {
    color: var(--gender-female-color);
}

.name-text-gender-male {
    color: var(--gender-male-color);
}

.profile-info {
    flex: 1;
    margin-left: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name-row {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.name-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.gender-tag {
    position: absolute;
    top: -4px;
    right: -16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.gender-tag img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.age-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--gender-female-color);
    background: var(--gender-female-light);
    padding: 1px 5px;
    border-radius: 20px;
    margin-left: 2px;
}

.age-tag.male {
    color: var(--gender-male-color);
    background: var(--gender-male-light);
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    align-items: center;
}

.class-tag {
    font-size: 13px;
    color: var(--gender-female-color);
    font-weight: 500;
    background: var(--gender-female-light);
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
}

.class-tag.male {
    color: var(--gender-male-color);
    background: var(--gender-male-light);
}

.info-text-male {
    color: var(--gender-male-color) !important;
}

.info-text- {
    color: var(--gender-female-color) !important;
}

.info-volunteer {
    font-size: 13px;
    line-height: 1.4;
    padding-top: 4px;
}

/* ========== 版权信息 ========== */
.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 登录注册容器样式 ========== */
.auth-container {
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(42, 75, 124, 0.08);
    padding: 40px 35px;
    text-align: left;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.title {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 35px;
    text-align: center;
}

/* ========== 表单样式 ========== */
.form-box {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(42, 75, 124, 0.08);
    padding: 25px 20px;
    border: 1px solid var(--border-light);
}

.page-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.input-group-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.input-group-inline label {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    width: 6em;
}

.input-group-inline label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.input-group-inline input,
.input-group-inline select {
    flex: 1;
    min-width: 0;
    max-width: 400px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
    background: var(--bg-card);
}

.input-group-inline input:focus,
.input-group-inline select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 75, 124, 0.1);
}

.avatar-upload-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

.avatar-upload-inline .avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-upload-inline .avatar-preview:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.avatar-upload-inline .avatar-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light), var(--primary-soft), var(--border-light), transparent);
    margin: 25px 0;
}

.ai-fill-expand {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
    background: var(--bg-card);
}

.input-group textarea {
    height: 120px;
    padding: 15px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 75, 124, 0.1);
}

.input-group select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
    background: var(--bg-card);
}

.input-group select:focus {
    border-color: var(--primary-color);
}

.required {
    color: var(--accent-red);
}

.btn-box {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ========== 公共按钮样式 ========== */
.auth-btn {
    width: 100%;
    height: var(--btn-height);
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ========== 并排按钮样式 ========== */
.save-btn {
    flex: 1;
    height: var(--btn-height);
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    background: var(--primary-hover);
}

.copy-btn {
    flex: 1;
    height: var(--btn-height);
    background: var(--success-color);
    color: #fff;
    border: none;
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--success-hover);
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 28px;
}

.remember {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.forget-pwd {
    color: var(--primary-color);
    text-decoration: none;
}

.forget-pwd:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.register-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 5px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 5px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-login {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
}

.back-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-login a:hover {
    text-decoration: underline;
}

/* ========== 记录卡片样式 ========== */
.record-card-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    display: block;
}

.record-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(42, 75, 124, 0.08);
    padding: 15px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, border-radius 0.3s ease;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.record-card.swiped {
    transform: translateX(-120px);
    border-radius: 16px 0 0 16px;
}

.record-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    align-items: stretch;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
    
}

.record-actions .action-btn {
    flex: 1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}

.record-actions .action-btn:hover {
    transform: scale(1.1);
}

.record-actions .edit-btn {
    background: var(--primary-color);
}

.record-actions .delete-btn {
    background: var(--error);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-left-tag {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.card-right-info {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.stats-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(42, 75, 124, 0.08);
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stats-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stats-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.stats-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stats-unit {
    font-size: 14px;
    font-weight: normal;
    margin-left: 2px;
}

.stats-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.content-wrap {
    background: #eef3fc;  /* 青花瓷淡蓝底 */
    border-radius: 8px;
    padding: 12px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.content-item {
    margin-bottom: 10px;
}
.content-item:last-child {
    margin-bottom: 0;
}

.content-text {
    text-indent: 2em;
    margin-top: 6px;
}

.content-label {
    color: var(--primary-color);
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
}

.content-tag {
    display: inline-block;
    background: var(--primary-soft);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-time {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.func-btn {
    width: 32px;
    height: 32px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
    background: transparent;
}
.func-btn:hover {
    opacity: 0.7;
}

.func-copy-btn {
    border-color: #2dda55;
}

.ai-btn {
    border-color: #e98f36;
}

/* ========== AI点评弹窗样式 ========== */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 78, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.ai-modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-gold);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: var(--text-dark);
    font-weight: bold;
}

.modal-header-btns {
    display: flex;
    gap: 15px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.header-icon-btn:hover {
    background: var(--border-light);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-page);
}

.ai-comment-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-primary);
    border-left: 3px solid var(--primary-color);
}

/* ========== 删除确认弹窗 ========== */
.delete-modal {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.delete-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #fee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--error);
}

.delete-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.delete-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.delete-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-cancel-btn,
.delete-confirm-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-cancel-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.delete-cancel-btn:hover {
    background: var(--border-light);
}

.delete-confirm-btn {
    background: var(--error);
    color: #fff;
}

.delete-confirm-btn:hover {
    background: #9e3d2f;
}

/* ========== Toast 提示框 ========== */
.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep);
    color: var(--text-on-dark);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: none;
    white-space: nowrap;
}
.toast.show {
    bottom: 40px;
    opacity: 1;
}

/* ========== Auth 页面居中布局 ========== */
body.auth-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== 长表单页面布局 ========== */
body.form-scroll {
    display: block;
    padding: 40px 15px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    .page-title {
        font-size: 20px;
    }

    .profile-card-wrapper {
        margin-bottom: 10px;
    }

    .profile-card {
        padding: 15px;
        gap: 14px;
    }

    .profile-card.swiped {
        transform: translateX(-80px);
    }

    .profile-actions {
        width: 80px;
    }

    .avatar-wrap {
        width: 75px;
        height: 75px;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .avatar {
        font-size: 28px;
    }

    .gender-badge {
        width: 22px;
        height: 22px;
        font-size: 13px;
        bottom: 1px;
        right: 1px;
    }

    .name-text {
        font-size: 20px;
    }

    .age-tag {
        font-size: 10px;
        padding: 1px 2px;
    }

    .class-tag {
        font-size: 13px;
        padding: 3px 10px;
    }

    .info-row {
        font-size: 13px;
        gap: 6px 10px;
    }

    .info-volunteer {
        font-size: 12px;
    }

    .form-box {
        padding: 20px 15px;
    }

    .input-group input,
    .input-group textarea {
        height: 44px;
        font-size: 14px;
    }

    .input-group textarea {
        height: 100px;
    }

    .record-card {
        padding: 10px;
       /* margin-bottom: 10px; */
    }

    .card-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        margin-bottom: 10px;
    }

    .card-left-tag,
    .card-right-info {
        font-size: 14px;
        white-space: nowrap;
    }

    .content-wrap {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .content-item {
        margin-bottom: 8px;
    }

    .content-label {
        font-size: 13px;
    }

    .func-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .create-time {
        font-size: 13px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 15px;
    }

    .ai-comment-box {
        padding: 15px;
        font-size: 15px;
    }

    .header-icon-btn {
        width: 32px;
        height: 32px;
    }
}