/* 奶油风格全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #FFF8F0;
    color: #3D3D3D;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面容器 */
.app-container {
    min-height: 100vh;
    background-color: #FFF8F0;
}

/* 顶部导航栏 */
.app-header {
    display: flex;
    align-items: center;
    height: 54px;
    background-color: #FFF3E0;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #FFE4B5;
}

.dynamic-buttons {
    position: absolute;
    left: 14px;
}

.nav-title {
    margin: 0 auto;
}

/* 退出应用按钮样式 */
.exit-app-btn {
    background-color: #FFF8F0;
    color: #8B6F47;
    border: 1px solid #FFE4B5;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.exit-app-btn:active {
    background-color: #FFE4B5;
    color: #6B4E33;
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(139, 111, 71, 0.2);
}

.nav-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-back:active {
    background-color: rgba(139, 111, 71, 0.2);
    transform: scale(0.9);
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #6B4E33;
    letter-spacing: 0.5px;
}

.nav-spacer {
    width: 40px;
}

/* 主内容区 */
.main-content {
    padding: 14px 10px;
    max-width: 480px;
    margin: 0 auto;
}

/* 信息卡片 */
.info-card {
    background-color: #FFFFFF;
    border-radius: 13px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #FFF8F0;
}

.info-icon {
    margin-top: 2px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF8F0;
    border-radius: 8px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #6B4E33;
    letter-spacing: 0.3px;
}

.info-text {
    font-size: 12px;
    color: #8B6F47;
    line-height: 1.5;
}

/* 方法选择区域 */
.method-section {
    margin-bottom: 20px;
}

.section-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #6B4E33;
    letter-spacing: 0.3px;
}

/* 方法卡片 */
.method-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #FFF8F0;
    -webkit-tap-highlight-color: transparent;
}

.method-card:active {
    transform: scale(0.98);
    background-color: #FFF3E0;
    border-color: #FFE4B5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 42px;
    height: 42px;
    background-color: #FFF8F0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border: 1px solid #FFE4B5;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #6B4E33;
    letter-spacing: 0.3px;
}

.card-desc {
    font-size: 10px;
    color: #8B6F47;
    line-height: 1.4;
}

.card-arrow {
    color: #B89470;
    opacity: 0.8;
}

/* 申请记录 */
.record-section {
    margin-bottom: 18px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.record-list {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #FFF8F0;
}

.no-record {
    text-align: center;
    padding: 18px 0;
    color: #B89470;
    font-size: 11px;
}

.record-item {
    padding: 10px 0;
    border-bottom: 1px solid #FFF8F0;
}

.record-item:last-child {
    border-bottom: none;
}

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

.record-account {
    font-size: 12px;
    font-weight: 500;
    color: #6B4E33;
}

.record-time {
    font-size: 9px;
    color: #B89470;
}

.record-estimated-time {
    font-size: 9px;
    color: #8B6F47;
    margin-top: 4px;
    display: block;
}

.record-reason {
    font-size: 11px;
    color: #8B6F47;
    line-height: 1.5;
    margin-bottom: 8px;
    background-color: #FFF8F0;
    padding: 7px 9px;
    border-radius: 5px;
    border-left: 2px solid #D4A76A;
}

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

.record-status {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

.cancel-btn {
    background-color: #FFF8F0;
    color: #D4A76A;
    border: 1px solid #FFE4B5;
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:active {
    transform: scale(0.94);
    background-color: #FFE4B5;
    color: #8B6F47;
    box-shadow: inset 0 2px 4px rgba(139, 111, 71, 0.2);
}

.section-header {
    -webkit-tap-highlight-color: transparent;
}

.section-header:active {
    transform: scale(0.98);
}

.exit-btn {
    background-color: #FFE4B5;
    color: #8B6F47;
    border-color: #D4A76A;
    font-size: 9px;
    padding: 3px 8px;
    white-space: nowrap;
}

.exit-btn:hover {
    background-color: #D4A76A;
    color: #FFF;
}

/* 状态样式 */
.status-pending {
    background-color: #FFF8F0;
    color: #D4A76A;
    border: 1px solid #FFE4B5;
}

.status-processing {
    background-color: #F0F8FF;
    color: #1976D2;
    border: 1px solid #E3F2FD;
}

.status-completed {
    background-color: #F8FFF8;
    color: #2E7D32;
    border: 1px solid #E8F5E9;
}

.status-failed {
    background-color: #FFF8F8;
    color: #C62828;
    border: 1px solid #FFEBEE;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-tap-highlight-color: transparent;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 13px;
    padding: 16px;
    max-width: 90%;
    width: 370px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.3s ease;
    position: relative;
    z-index: 1001;
    border: 1px solid #FFF8F0;
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #6B4E33;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.modal-desc {
    font-size: 12px;
    color: #8B6F47;
    line-height: 1.5;
}

.modal-body {
    margin-bottom: 18px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6B4E33;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #FFE4B5;
    border-radius: 9px;
    font-size: 12px;
    background-color: #FFF8F0;
    transition: all 0.2s ease;
    color: #6B4E33;
}

.form-input:focus {
    outline: none;
    border-color: #D4A76A;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(212, 167, 106, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #FFE4B5;
    border-radius: 9px;
    font-size: 12px;
    background-color: #FFF8F0;
    resize: vertical;
    min-height: 90px;
    transition: all 0.2s ease;
    color: #6B4E33;
    line-height: 1.5;
}

.form-textarea:focus {
    outline: none;
    border-color: #D4A76A;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(212, 167, 106, 0.1);
}

/* 弹窗底部 */
.modal-footer {
    display: flex;
    gap: 11px;
}

/* 按钮样式 */
.btn {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-secondary {
    background-color: #FFF8F0;
    color: #6B4E33;
    border: 1px solid #FFE4B5;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active {
    transform: scale(0.96);
    background-color: #FFF3E0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #D4A76A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(212, 167, 106, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
    transform: scale(0.96);
    background-color: #C49758;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
}

/* 联系信息 */
.contact-info {
    text-align: center;
    padding: 14px 0;
}

.contact-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6B4E33;
}

.contact-value {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #D4A76A;
    background-color: #FFF8F0;
    padding: 9px 0;
    border-radius: 5px;
    border: 1px solid #FFE4B5;
}

.contact-time {
    font-size: 11px;
    color: #B89470;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* 邮箱指南 */
.email-guide {
    padding: 7px 0;
}

.email-item {
    margin-bottom: 16px;
}

.email-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6B4E33;
    letter-spacing: 0.3px;
}

.email-value {
    font-size: 13px;
    color: #8B6F47;
    background-color: #FFF8F0;
    padding: 9px 12px;
    border-radius: 5px;
    border-left: 2px solid #D4A76A;
    margin-bottom: 2px;
    display: block;
}

.email-requirements {
    font-size: 12px;
    color: #8B6F47;
    line-height: 1.5;
    margin-left: 16px;
    margin-bottom: 2px;
    background-color: #FFF8F0;
    padding: 9px 12px;
    border-radius: 5px;
    border-left: 2px solid #D4A76A;
}

.email-requirements li {
    margin-bottom: 6px;
}

.email-requirements li:last-child {
    margin-bottom: 0;
}

.email-note {
    font-size: 12px;
    color: #8B6F47;
    line-height: 1.6;
    background-color: #FFF8F0;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 18px;
    border: 1px solid #FFE4B5;
}

.email-note p {
    margin-bottom: 6px;
}

.email-note p:last-child {
    margin-bottom: 0;
}

/* 提示信息 */
.toast {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(107, 78, 51, 0.9);
    color: #FFFFFF;
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1001;
    display: none;
    animation: fadeInOut 2s ease;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    display: block;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .main-content {
        padding: 12px 8px;
    }
    
    .app-header {
        height: 48px;
    }
    
    .nav-title {
        font-size: 15px;
    }
    
    .modal-content {
        padding: 14px;
        width: 92%;
    }
    
    .info-card {
        padding: 14px;
        gap: 10px;
    }
    
    .method-card {
        padding: 12px;
    }
    
    .card-icon {
        width: 38px;
        height: 38px;
    }
    
    .record-list {
        padding: 12px;
    }
}

/* 成功页面样式 */
.success-card {
    background-color: #FFFFFF;
    border-radius: 13px;
    padding: 22px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #FFF8F0;
}

.success-icon {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    margin-bottom: 24px;
    max-width: 280px;
}

.success-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 9px;
    color: #6B4E33;
    letter-spacing: 0.5px;
}

.success-text {
    font-size: 13px;
    color: #8B6F47;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-note {
    font-size: 12px;
    color: #B89470;
    line-height: 1.6;
    background-color: #FFF8F0;
    padding: 9px 12px;
    border-radius: 5px;
    border-left: 2px solid #D4A76A;
}

.success-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FFF8F0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #FFE4B5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4A76A;
}