/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
    font-size: 13px;
}

/* 账户卡片样式 */
.account-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 24px;
}

.account-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
}

.account-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 6px;
}

.account-value {
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.account-card .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-card .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-card .btn i {
    margin-right: 6px;
}

/* 表单区域样式 */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.section-header p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* 输入框包装器 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 验证码输入框组 */
.verify-code-group {
    display: flex;
    gap: 12px;
}

.verify-code-group .input-wrapper {
    flex: 1;
}

.verify-code-group .btn {
    white-space: nowrap;
    min-width: 120px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.verify-code-group .btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* 按钮样式增强 */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    padding: 12px 28px;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

/* 表单样式调整 */
.api-form {
    background: transparent;
    padding: 0;
}

.api-form h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}
 
html, body {
    height: 100%;
}
 
body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
}
 
/* 登录页面body样式 */
body.login-page {
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
 
/* 顶部导航 */
.header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 
.header h1 {
    font-size: 20px;
    font-weight: normal;
}
 
.header .nav-links {
    display: flex;
    gap: 20px;
}
 
.header .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}
 
.header .nav-links a:hover {
    color: #1abc9c;
}
 
/* 主内容区（首页） */
.container.home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    overflow-y: auto;
}
 
/* 欢迎区域 */
.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}
 
.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
}
 
.welcome-section p {
    font-size: 16px;
    color: #777;
    max-width: 800px;
    margin: 0 auto;
}
 
/* 报价系统区域 */
.quote-system {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 50px;
    border: 1px solid #e0e0e0;
}
 
.quote-system h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1abc9c;
}
 
/* 基本信息表单 */
.basic-info {
    margin-bottom: 30px;
}
 
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
 
.info-item {
    flex: 1;
    min-width: 250px;
}
 
.info-item label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
 
.info-item input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s;
}
 
.info-item select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s;
}
 
.info-item input:focus,
.info-item select:focus,
.info-item textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
/* 基本信息中的备注文本框样式 */
.form-remarks-textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    min-height: 60px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
    transition: border-color 0.3s;
    font-family: "微软雅黑", sans-serif;
}
 
/* 产品表格 */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
 
.product-table th,
.product-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
}
 
/* 调整列宽 */
.product-table th:nth-child(4), /* 数量 */
.product-table td:nth-child(4),
.product-table th:nth-child(5), /* 材料单价 */
.product-table td:nth-child(5),
.product-table th:nth-child(6), /* 材料小计 */
.product-table td:nth-child(6),
.product-table th:nth-child(8), /* 加工单价 */
.product-table td:nth-child(8),
.product-table th:nth-child(9), /* 加工小计 */
.product-table td:nth-child(9) {
    width: 60px;
    min-width: 60px;
    padding: 6px 4px;
}
 
.product-table th:nth-child(12), /* 操作列 */
.product-table td:nth-child(12) {
    width: 80px;
    min-width: 80px;
    padding: 6px 4px;
    white-space: nowrap;
    text-align: center;
}
 
/* 调整输入框宽度 */
.product-table th:nth-child(4) input,
.product-table td:nth-child(4) input,
.product-table th:nth-child(5) input,
.product-table td:nth-child(5) input,
.product-table th:nth-child(6) input,
.product-table td:nth-child(6) input,
.product-table th:nth-child(8) input,
.product-table td:nth-child(8) input,
.product-table th:nth-child(9) input,
.product-table td:nth-child(9) input {
    width: 100%;
    padding: 4px;
    font-size: 12px;
}
 
.product-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
}
 
.product-table tr {
    height: auto;
    min-height: 70px;
}
 
.product-table tr:hover {
    background: #f8f9fa;
}
 
.product-table input,
.product-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}
 
.product-table input:focus,
.product-table select:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
.product-table .add-btn {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
 
.product-table .add-btn:hover {
    background: #16a085;
}
 
.product-table .remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
 
.product-table .remove-btn:hover {
    background: #c0392b;
}
 
/* 报价汇总 */
.quote-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}
 
.summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
 
.summary-item {
    flex: 1;
    min-width: 250px;
}
 
.summary-item label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
 
.summary-item input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    font-weight: 500;
    transition: border-color 0.3s;
}
 
.summary-item input:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
.summary-item input[readonly] {
    background: #f5f5f5;
    color: #2c3e50;
    font-weight: bold;
}
 
/* 补充说明 */
.notes {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}
 
.notes h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
}
 
.notes ul {
    list-style-type: disc;
    margin-left: 25px;
    color: #555;
}
 
.notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}
 
/* 样式配置 */
.style-config {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    max-width: 800px;
}
 
.style-config h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1abc9c;
}
 
.config-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
 
.config-item {
    flex: 1;
    min-width: 200px;
}
 
.config-item label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
 
.config-item select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s;
}
 
.config-item select:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
/* 首页操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}
 
.action-buttons .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: normal;
    min-width: 120px;
    text-align: center;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    float: none;
    position: relative;
    z-index: 1;
}
 
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
 
.btn-primary {
    background: #1abc9c;
    color: white;
}
 
.btn-primary:hover {
    background: #16a085;
    color: white;
}
 
.btn-secondary {
    background: #3498db;
    color: white;
}
 
.btn-secondary:hover {
    background: #2980b9;
    color: white;
}
 
.btn-success {
    background: #27ae60;
    color: white;
}
 
.btn-success:hover {
    background: #229954;
    color: white;
}
 
.btn-warning {
    background: #f39c12;
    color: white;
}
 
.btn-warning:hover {
    background: #e67e22;
    color: white;
}
 
.btn-danger {
    background: #e74c3c;
    color: white;
}
 
.btn-danger:hover {
    background: #c0392b;
    color: white;
}
 
.btn-default {
    background: #95a5a6;
    color: white;
}
 
.btn-default:hover {
    background: #7f8c8d;
    color: white;
}
 
/* 历史报价 */
.history-section {
    margin-top: 8px;
}
 
.history-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
}
 
.history-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}
 
.history-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 6px;
    transition: background 0.3s;
}
 
.history-item:hover {
    background: #f8f9fa;
}
 
.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
 
.history-item .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
 
.history-item .price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}
 
.history-item .info span {
    font-size: 14px;
    color: #555;
}
 
/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    clear: both;
}
 
.footer p {
    font-size: 14px;
}
 
/* 登录页面样式 */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 60px;
    max-width: 500px;
    margin: 100px auto;
    border: 1px solid #e0e0e0;
}
 
.login-container .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
 
.login-container .input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    z-index: 10;
}
 
.login-container .input-with-icon .form-control {
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
}
 
.login-header {
    text-align: center;
    margin-bottom: 40px;
}
 
.login-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}
 
.login-header p {
    color: #777;
    font-size: 16px;
}
 
.form-group {
    margin-bottom: 20px;
}
 
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}
 
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
 
.form-control:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
 
.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    z-index: 10;
}
 
.input-with-icon .form-control {
    padding-left: 38px !important;
    width: 100%;
    box-sizing: border-box;
}
 
.btn-login {
    flex: 1;
    background: linear-gradient(45deg, #1abc9c, #16a085);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}
 
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}
 
/* 登录页面专用的全屏登录按钮 */
.login-container .btn-login {
    width: 100%;
}
 
/* 模态框中的按钮样式 */
.modal-content .btn-login,
.modal-content .btn-cancel {
    flex: 1;
    width: auto;
    padding: 15px;
    font-size: 16px;
}
 
.forgot-password {
    text-align: right;
    margin-top: 10px;
}
 
.forgot-password a {
    color: #1abc9c;
    text-decoration: none;
    font-size: 14px;
}
 
.forgot-password a:hover {
    text-decoration: underline;
}
 
.sms-code-group {
    display: flex;
    gap: 10px;
    width: 100%;
}
 
.sms-code-group input {
    flex: 1.5;
    min-width: 0;
}
 
.btn-sms {
    flex: 1;
    min-width: 100px;
    padding: 0 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.3s;
}
 
.btn-sms:hover {
    background: #2980b9;
}
 
.btn-sms:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
 
/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}
 
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 简易计算页：补 .show 类覆盖 .display-none!important（配合 classList 切换显示隐藏） */
.modal.show {
    display: flex !important;
}
#login-modal.show,
#forgot-password-modal.show,
#slider-captcha-modal.show {
    display: flex !important;
}

.result-section.show {
    display: block !important;
}
#result-section.show {
    display: block !important;
}

.custom-keyboard.show {
    display: block !important;
}
#customKeyboard.show {
    display: block !important;
}

.error-message.show {
    display: block !important;
}
#login-error.show {
    display: block !important;
}
 
.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}
 
.modal-content.modal-content-sm {
    background: white !important;
    border-radius: 10px !important;
    max-width: 90% !important;
    width: 380px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    animation: slideUp 0.3s ease-out !important;
    padding: 15px !important;
}
 
/* 滑块验证弹窗 */
.slider-captcha-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 340px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
 
.slider-captcha-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}
 
.slider-captcha-wrapper {
    position: relative;
    height: 44px;
    margin: 0 auto;
    width: 300px;
}
 
.slider-captcha-track {
    position: relative;
    width: 100%;
    height: 44px;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
 
.slider-captcha-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0;
}
 
.slider-captcha-block {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 0 22px 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}
 
.slider-captcha-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #666;
    transition: box-shadow 0.2s;
    z-index: 10;
    border: 2px solid #ddd;
}
 
.slider-captcha-handle:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border-color: #4facfe;
}
 
.slider-captcha-handle:active {
    cursor: grabbing;
}
 
.slider-captcha-tip {
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}
 
.slider-captcha-tip.success {
    color: #27ae60;
    font-weight: 500;
}
 
.slider-captcha-tip.error {
    color: #e74c3c;
    font-weight: 500;
}
 
.modal-content-sm h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
 
.modal-content-sm .form-group {
    margin-bottom: 15px;
}
 
.modal-content-sm .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
 
.modal-content-sm .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
 
.modal-content-sm .form-control:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
.modal-content-sm .sms-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
 
.modal-content-sm .sms-code-group input {
    flex: 1;
    min-width: 0;
}
 
.modal-content-sm .btn-sms {
    padding: 18px 6px !important;
    background: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    transition: background 0.3s !important;
    min-width: 70px !important;
    width: auto !important;
    max-width: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
    height: auto !important;
    text-align: center !important;
    vertical-align: middle !important;
}
 
.modal-content-sm .btn-sms:hover {
    background: #2980b9;
}
 
.modal-content-sm .btn-sms:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
 
.modal-content-sm .alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}
 
.modal-content-sm .alert-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #fcc;
}
 
.modal-content-sm .alert-success {
    background: #efe;
    color: #27ae60;
    border: 1px solid #cfc;
}
 
.modal-content-sm .alert.hidden {
    display: none;
}
 
.modal-content-sm .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
 
.modal-content-sm .modal-actions button {
    flex: 1 !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-align: center !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    width: auto !important;
}
 
.modal-content-sm .modal-actions .btn-login {
    background: #1abc9c !important;
    color: white !important;
}
 
.modal-content-sm .modal-actions .btn-login:hover {
    background: #16a085 !important;
}
 
.modal-content-sm .modal-actions .btn-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}
 
.modal-content-sm .modal-actions .btn-cancel:hover {
    background: #eee !important;
}
 
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
 
/* ========== 通用样式类（替代内联样式） ========== */
 
.mt-30 {
    margin-top: 30px;
}
 
.mt-20 {
    margin-top: 20px;
}
 
.mb-20 {
    margin-bottom: 20px;
}
 
.mb-15 {
    margin-bottom: 15px;
}
 
.mb-10 {
    margin-bottom: 10px;
}
 
.ml-10 {
    margin-left: 10px;
}
 
.mx-30 {
    margin: 30px 0;
}
 
.text-center {
    text-align: center;
}
 
.text-sm {
    font-size: 12px;
}
 
.text-md {
    font-size: 14px;
}
 
.text-lg {
    font-size: 18px;
}
 
.text-xl {
    font-size: 20px;
}
 
.text-gray {
    color: #666;
}
 
.text-red {
    color: #ef4444;
}
 
.text-green {
    color: #10b981;
}
 
.empty-state {
    text-align: center;
    padding: 20px;
}
 
.text-yellow {
    color: #f59e0b;
}
 
.text-white {
    color: white;
}
 
.font-bold {
    font-weight: bold;
}
 
.flex {
    display: flex;
}
 
.flex-wrap {
    flex-wrap: wrap;
}
 
.flex-1 {
    flex: 1;
}
 
.justify-between {
    justify-content: space-between;
}
 
.justify-end {
    justify-content: flex-end;
}
 
.items-center {
    align-items: center;
}
 
.gap-10 {
    gap: 10px;
}
 
.cursor-pointer {
    cursor: pointer;
}
 
.inline-block {
    display: inline-block;
}
 
.block {
    display: block;
}
 
.mt-1 {
    margin-top: 5px;
}
 
.hidden {
    display: none;
}
 
.nowrap {
    white-space: nowrap;
}
 
.predicted-price-box {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}
 
.card {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
 
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.card-form {
    display: none;
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}
 
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
 
.form-group-sm {
    flex: 1;
    min-width: 120px;
}
 
.form-label-sm {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
 
.form-control-sm {
    padding: 8px 10px;
    font-size: 12px;
    height: 36px;
    box-sizing: border-box;
}
 
.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
    height: 36px;
    box-sizing: border-box;
    flex: 1;
}
 
.btn-save {
    font-size: 20px;
    cursor: pointer;
    margin-right: 8px;
    display: inline-block;
    color: #10b981;
}
 
.btn-delete {
    font-size: 20px;
    cursor: pointer;
    display: inline-block;
    color: #ef4444;
}
 
.predicted-price-value {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}
 
.predicted-price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
 
.info-box {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 8px;
}
 
/* 自定义对话框样式 */
.custom-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
 
.custom-dialog.show {
    display: flex;
}
 
.custom-dialog-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 90%;
    width: fit-content;
    min-width: 280px;
    max-height: none;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
 
.custom-dialog-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}
 
.custom-dialog-body {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}
 
.custom-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
 
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px 16px 0 0;
}
 
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.modal-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #1abc9c, #3498db);
    border-radius: 2px;
}
 
.modal-header .close-btn {
    float: none;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
 
.modal-header .close-btn:hover {
    background: #f0f0f0;
    color: #e74c3c;
    transform: rotate(90deg);
}
 
.modal-body {
    padding: 20px;
}
 
.modal-body .form-group {
    margin-bottom: 15px;
}
 
.modal-body .form-group:last-of-type {
    margin-bottom: 20px;
}
 
.modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}
 
.modal-body .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

/* 登录弹窗输入框 - 默认红色边框 */
#login-modal .modal-body .form-control {
    border: 1px solid #ff0000 !important;
    background: #fafafa !important;
}

#login-modal .modal-body .form-control:focus {
    border-color: #1abc9c !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1) !important;
}
 
.modal-body .form-control:focus {
    outline: none;
    border-color: #1abc9c;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
}
 
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
    padding: 0 20px 20px;
    width: 100%;
}
 
.modal-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
 
.modal-actions .btn-primary {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}
 
.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
    background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
}
 
.modal-actions .btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 2px solid #e8e8e8;
}
 
.modal-actions .btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ddd;
    transform: translateY(-2px);
}
 
.user-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}
 
.user-link:hover {
    color: #2980b9;
}
 
.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
}
 
.close-btn:hover {
    color: #000;
}
 
.user-detail {
    margin-top: 10px;
}
 
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
 
.detail-label {
    width: 100px;
    font-weight: 600;
    color: #7f8c8d;
}
 
.detail-value {
    flex: 1;
    color: #2c3e50;
}
 
.btn-cancel {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
 
.btn-cancel:hover {
    border-color: #1abc9c;
    color: #1abc9c;
}
 
/* 管理后台布局 */
.container {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
}
 
/* 侧边栏 */
.sidebar {
    width: 220px;
    background: #34495e;
    padding: 20px 0;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}
 
.sidebar-menu {
    list-style: none;
}
 
.sidebar-menu li {
    margin-bottom: 5px;
}
 
.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}
 
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #1abc9c;
    color: white;
}
 
/* 主内容区 */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    width: 100%;
    background: #f5f7fa;
}
 
.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    max-width: 100%;
    border: 1px solid #e0e0e0;
}
 
.content-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    font-weight: 500;
}
 
/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}
 
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}
 
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
    color: #333;
}
 
.form-control:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
 
/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
 
table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
}
 
table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}
 
table tr:hover {
    background: #f8f9fa;
}
 
/* 徽章样式 */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}
 
.badge-success {
    background: #27ae60;
}
 
.badge-warning {
    background: #f39c12;
}
 
.badge-danger {
    background: #e74c3c;
}
 
.badge-info {
    background: #3498db;
}
 
/* 提示框样式 */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    max-width: 100%;
    width: fit-content;
    max-height: none;
    overflow: visible;
}
 
.alert-success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}
 
.alert-warning {
    background: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}
 
.alert-danger {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}
 
/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
 
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}
 
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
 
.stat-card.clickable {
    cursor: pointer;
    position: relative;
}
 
.stat-card.clickable .stat-arrow {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    color: #ccc;
    transition: color 0.3s;
}
 
.stat-card.clickable:hover .stat-arrow {
    color: #1abc9c;
}
 
.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1abc9c;
    margin: 15px 0;
}
 
.stat-card .stat-label {
    color: #777;
    font-size: 14px;
}
 
.stat-card .stat-desc {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}
 
/* 隐藏样式 */
.hidden {
    display: none;
}
 
.form-group-hidden {
    display: none;
}
 
/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        gap: 10px;
        text-align: center;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .header .nav-links {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    
    .header .nav-links a {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
    }
    
    .header .nav-links span {
        display: flex;
        align-items: center;
    }
    
    .container {
        padding: 20px;
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    
    .sidebar-menu li {
        margin-bottom: 0;
        margin-right: 5px;
    }
    
    .sidebar-menu a {
        white-space: nowrap;
        padding: 8px 12px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .info-row,
    .summary-row {
        flex-direction: column;
    }
    
    .info-item input,
    .info-item select,
    .summary-item input {
        width: 100%;
    }
    
    .info-item label,
    .summary-item label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .product-table {
        font-size: 12px;
    }
    
    .product-table th,
    .product-table td {
        padding: 6px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 14px;
        line-height: 1.4;
        min-height: 48px;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .login-container {
        padding: 30px;
        margin: 50px auto;
    }
    
    .sms-code-group {
        flex-direction: column;
    }
    
    .btn-sms {
        padding: 12px;
    }
    
    .footer-logo {
        width: 24px;
        height: 24px;
    }
}
 
/* 登录页头部样式 */
.header-login {
    padding: 10px 20px;
    flex-wrap: nowrap !important;
}
 
.header-login .nav-links {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-width: max-content;
    margin-left: auto;
}
 
.header-login .header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 2;
    white-space: nowrap;
    flex-basis: 0;
}
 
.header-login .header-brand h1 {
    margin: 0;
    font-size: 16px;
}
 
.header-login .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
 
.header-login .nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
}
 
.header-login .nav-links span {
    display: flex;
    align-items: center;
}
 
.hidden {
    display: none !important;
}

.header-login .nav-links #user-info.hidden {
    display: none !important;
}
 
.header-login .nav-links #user-info.visible {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
 
.header-login .nav-links #user-info.visible.hidden {
    display: none;
}
 
.header-login .nav-links #user-info.visible #username-display {
    display: inline !important;
    white-space: nowrap;
    margin-right: 10px;
}
 
.header-login .nav-links #user-info.visible a {
    display: inline !important;
    white-space: nowrap;
}
 
 
 
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
.header-brand h1 {
    margin: 0;
    font-size: 20px;
}
 
.nav-link-active {
    color: #1abc9c;
    font-weight: 500;
    padding: 5px 10px;
}
 
.member-link {
    display: none;
}
 
/* 管理后台样式 */
.user-info-text {
    margin-right: 15px;
}
 
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}
 
.search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}
 
.search-input {
    flex: 1;
    max-width: 300px;
}
 
.form-help {
    color: #777;
    font-size: 12px;
}
 
.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: fit-content;
    max-width: 90%;
    min-width: 280px;
    max-height: none;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
 
.form-control-readonly {
    background: #f5f5f5;
}
 
.token-generator {
    display: flex;
    gap: 10px;
    align-items: center;
}
 
.token-generator .form-control {
    flex: 1;
}
 
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
 
.logout-link {
    color: #1abc9c;
}
 
/* 会员中心样式 */
.application-status {
    margin-top: 40px;
}
 
.section-subtitle {
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}
 
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
 
.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
 
.features-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}
 
.features-header p {
    font-size: 18px;
    color: #777;
}
 
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
 
.dashboard-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}
 
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
 
.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
}
 
.footer-brand h3 {
    color: white;
    font-size: 18px;
    margin: 0;
}
 
.footer-copyright {
    margin: 0;
    color: rgba(255,255,255,0.8);
}
 
.footer-desc {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
 
/* 首页英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 30px 0 50px;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}
 
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
 
.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px;
    background: linear-gradient(45deg, #1abc9c, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}
 
.hero-content p {
    font-size: 18px;
    margin: 0 0 30px;
    color: #ffffff;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    opacity: 1;
}
 
.btn-tech {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}
 
.btn-tech:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.6);
}
 
.btn-tech-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}
 
.btn-tech-secondary:hover {
    border-color: white;
    transform: translateY(-3px);
}
 
.hero-buttons .btn-tech-red {
    background: #e74c3c !important;
    background: linear-gradient(45deg, #e74c3c, #c0392b) !important;
    color: white !important;
    border: 2px solid #c0392b !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5) !important;
    margin-left: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
 
.hero-buttons .btn-tech-red:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.7) !important;
    background: linear-gradient(45deg, #c0392b, #a93226) !important;
}
 
/* 功能特性区域样式 */
.features-section {
    padding: 60px 0 50px;
    background: #f5f7fa;
    position: relative;
    z-index: 1;
}
 
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}
 
.feature-card {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
}
 
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
 
.feature-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #1abc9c, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}
 
.feature-card h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
}
 
.feature-card p {
    color: #777;
    line-height: 1.4;
    font-size: 12px;
    margin: 0;
}
 
/* 报价系统样式 */
.quote-system-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: 15px auto;
    max-width: 1600px;
    border: 1px solid #e0e0e0;
}
 
.quote-system-modern h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1abc9c;
}
 
/* 仪表盘区域样式 */
.dashboard-section {
    padding: 50px 0;
    background: #f5f7fa;
}
 
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
 
.dashboard-card h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
 
/* 首页响应式设计 */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn-tech,
    .btn-tech-secondary {
        display: block;
        width: 90%;
        max-width: 300px;
        margin: 10px auto;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-tech-secondary {
        margin-left: auto;
    }
    
    .quote-system-modern {
        padding: 20px 15px;
        margin: 30px 15px;
        max-width: none;
        width: calc(100% - 30px);
    }
    
    .header-login {
        padding: 15px;
        flex-direction: row !important;
        text-align: center;
        flex-wrap: nowrap !important;
    }
    
    .header-brand h1 {
        font-size: 18px;
    }
    
    .nav-links {
        display: flex;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .header-login .nav-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }
    
    .header-login .nav-links #user-info.visible {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 5px 10px;
        display: inline-flex;
        align-items: center;
    }
    
    .nav-links span {
        display: flex;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .feature-card {
        padding: 15px 12px;
        min-height: 120px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .feature-card p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .action-buttons {
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .action-buttons .btn {
        font-size: 14px;
        padding: 14px 20px;
        min-width: auto;
        min-height: 48px;
        width: 100%;
        max-width: 300px;
    }
}
 
/* 会员中心样式 */
.member-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
 
.member-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
 
.member-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1abc9c, #3498db);
    border-radius: 2px;
}
 
.member-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}
 
.member-header p {
    font-size: 18px;
    color: #777;
    margin: 0;
}
 
.member-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}
 
.member-nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
 
.member-nav a:hover {
    color: #1abc9c;
    background: rgba(26, 188, 156, 0.1);
    transform: translateY(-2px);
}
 
.member-nav a.active {
    color: white;
    background: linear-gradient(90deg, #1abc9c, #3498db);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}
 
.member-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}
 
.member-section:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
 
.member-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1abc9c;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.member-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #1abc9c, #3498db);
    border-radius: 2px;
}
 
.api-form {
    max-width: 800px;
    margin: 0 auto;
}
 
#account-settings .api-form,
#member-info .api-form {
    margin-left: 30px;
}
 
.api-form .form-group {
    margin-bottom: 20px;
}
 
.api-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}
 
.api-form .form-group input,
.api-form .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}
 
.api-form .form-group input:focus,
.api-form .form-group textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
    background: white;
}
 
.api-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}
 
.quote-history {
    margin-top: 30px;
}
 
.member-history-item {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
 
.member-history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #1abc9c, #3498db);
}
 
.member-history-item:hover {
    background: #f0f8f5;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
 
.member-history-item .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
 
.member-history-item .price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}
 
.member-history-item .info span {
    font-size: 14px;
    color: #555;
}
 
.member-history-item .info span strong {
    color: #333;
}
 
.member-info {
    max-width: 600px;
    margin: 0 auto;
}
 
.member-info-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
 
.member-info-item:last-child {
    border-bottom: none;
}
 
.member-info-item .label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}
 
.member-info-item .value {
    color: #333;
    font-size: 14px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
}
 
.api-status {
    margin-top: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}
 
.api-status h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}
 
.api-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
 
.api-status-item:last-child {
    border-bottom: none;
}
 
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}
 
.empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}
 
.empty-state h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}
 
.empty-state p {
    color: #95a5a6;
    margin-bottom: 30px;
}
 
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    display: inline-block;
}
 
.status-active {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}
 
.status-inactive {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}
 
.status-pending {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}
 
.status-approved {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.status-completed {
    background: linear-gradient(90deg, #52c41a, #73d13d);
}

.status-rejected {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* 会员中心响应式设计 */
@media (max-width: 768px) {
    .member-container {
        padding: 20px 15px;
    }
    
    .member-header h1 {
        font-size: 28px;
    }
    
    .member-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .member-nav a {
        text-align: center;
    }
    
    .member-section {
        padding: 20px;
    }
    
    .member-history-item .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .member-history-item .price {
        align-self: flex-start;
    }
    
    .member-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .member-info-item .value {
        align-self: stretch;
        text-align: center;
    }
}
 
/* 管理中心风格样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}
 
/* 侧边导航 */
.admin-sidebar {
    width: 240px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
 
.admin-sidebar .logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
 
.admin-sidebar .logo h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.admin-sidebar .logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #1abc9c, #3498db);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}
 
.admin-sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.admin-sidebar .nav-menu li {
    margin-bottom: 5px;
}
 
.admin-sidebar .nav-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
 
.admin-sidebar .nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
 
.admin-sidebar .nav-menu a.active {
    background: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
    border-left-color: #1abc9c;
}
 
.admin-sidebar .nav-menu a i {
    margin-right: 10px;
    font-size: 16px;
}
 
/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 20px;
}
 
/* 顶部导航栏 */
.admin-header {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.admin-header h1 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}
 
.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
 
.admin-header .user-info span {
    color: #555;
    font-size: 14px;
}
 
.admin-header .user-info a {
    color: #1abc9c;
    text-decoration: none;
    font-size: 14px;
}
 
/* 内容卡片 */
.admin-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
 
.admin-card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
 
.admin-card .api-form {
    margin-top: 20px;
}
 
/* 设置页面样式 */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
 
.settings-tab-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}
 
.settings-tab-btn:hover {
    background: #e8e8e8;
    color: #333;
}
 
.settings-tab-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}
 
.settings-group {
    margin-top: 20px;
}
 
.settings-group h3 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
 
.settings-group .form-group {
    margin-bottom: 20px;
}
 
.form-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
 
.data-mgmt-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
 
/* 数据管理卡片 */
.data-management-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
}
 
.data-management-card .card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #dee2e6;
}
 
.data-management-card .card-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}
 
.data-management-card .card-desc {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}
 
/* 数据统计 */
.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
 
.stat-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
 
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 4px;
}
 
.stat-label {
    font-size: 12px;
    color: #6c757d;
}
 
/* 自定义数字键盘样式 */
.custom-keyboard {
    display: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #f0f0f0 !important;
    padding: 5px !important;
    border-top: 1px solid #ddd !important;
    z-index: 99999 !important;
}
 
.custom-keyboard.show {
    display: block !important;
}
 
.keyboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 3px 6px !important;
    margin-bottom: 5px !important;
}
 
.keyboard-header span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #333 !important;
}
 
.keyboard-header button {
    background: #1abc9c !important;
    color: white !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}
 
.keyboard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}
 
.keyboard-key {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 5px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.1s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 35px !important;
}
 
.keyboard-key:active {
    background: #e0e0e0 !important;
    transform: scale(0.98) !important;
}
 
.keyboard-key.special {
    background: #e0e0e0 !important;
    font-size: 20px !important;
}
 
.keyboard-key.special:active {
    background: #d0d0d0 !important;
}
 
/* 自定义输入框样式，避免系统键盘弹出 */
.custom-input {
    position: relative;
}
 
.custom-input input {
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
 
.custom-input input:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
/* 模拟光标效果的容器 */
.custom-input .cursor-wrapper {
    position: relative;
    display: block;
}
 
/* 跳动的光标 */
.custom-input .fake-cursor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1.4em;
    background-color: #666;
    animation: blink 1s infinite;
    display: none;
    pointer-events: none;
    z-index: 100;
}
 
.custom-input .fake-cursor.show {
    display: block;
}
 
@keyframes blink {
    0%, 50% {
        opacity: 0.8;
    }
    51%, 100% {
        opacity: 0.3;
    }
}
 
/* 立方价格计算区域 */
.cubic-price-section {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e5e5;
}
 
.cubic-info {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}
 
.cubic-price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
 
.cubic-price-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}
 
.cubic-price-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
 
.cubic-price-currency {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}
 
#cubic-price-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: transparent;
}
 
#cubic-price-input::placeholder {
    color: #999;
    font-weight: 400;
}
 
.cubic-price-unit {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}
 
/* 移动端适配 */
@media (max-width: 768px) {
    .custom-keyboard {
        padding: 5px !important;
    }
    
    .keyboard-grid {
        max-width: 300px !important;
        gap: 5px !important;
    }
    
    .keyboard-key {
        padding: 10px 5px !important;
        font-size: 17px !important;
        min-height: 40px !important;
    }
    
    .keyboard-header {
        padding: 3px 5px !important;
    }
    
    .keyboard-header button {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
}
 
/* 数据操作按钮组 */
.data-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
 
.action-group {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
 
.action-group h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
 
.action-group .btn {
    width: 100%;
    margin-bottom: 8px;
    justify-content: center;
}
 
.action-group .btn:last-child {
    margin-bottom: 0;
}
 
.btn-icon {
    margin-right: 8px;
}
 
/* 数据提示 */
.data-tips {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
}
 
/* =============== 简易计算器页面样式 =============== */
.simple-calc-body {
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}
 
.simple-calc-header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
 
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-calc-logo {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.simple-calc-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .simple-calc-logo {
        width: 45px;
        height: 45px;
    }
}
 
.back-btn {
    background: none;
    border: none;
    padding: 4px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
 
.back-btn:hover {
    opacity: 0.8;
}
 
.header-left h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
 
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.user-status {
    font-size: 12px;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.3s;
}
 
.user-status:hover {
    text-decoration: underline;
    opacity: 1;
}
 
.login-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
 
.login-btn:hover {
    background: rgba(255,255,255,0.3);
}
 
.admin-btn {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
 
.admin-btn:hover {
    background: rgba(231, 76, 60, 1);
}
 
.simple-calc-container {
    padding: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
 
.calc-section,
.history-section {
    background: linear-gradient(145deg, #ffffff 0%, #fdfdfd 100%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
 
.calc-section h2,
.history-section h2 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.calc-section h2::before {
    content: "🧮";
    font-size: 16px;
}
 
.history-section h2::before {
    content: "📚";
    font-size: 16px;
}
 
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
 
.history-header h2 {
    margin: 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.history-header h2::before {
    content: "📚";
    font-size: 16px;
}
 
.refresh-btn {
    background: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
    border: none;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
}
 
.refresh-btn:hover {
    background: rgba(26, 188, 156, 0.2);
    transform: rotate(360deg);
}
 
.refresh-btn:active {
    transform: scale(0.95) rotate(360deg);
}
 
.history-summary {
    margin-bottom: 10px;
    padding: 4px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
 
.summary-left {
    float: left;
    width: 50%;
    text-align: left;
}
 
.summary-right {
    float: right;
    width: 50%;
    text-align: right;
}
 
.summary-label {
    font-size: 9px;
    color: #999;
    margin-right: 4px;
}
 
.summary-value {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
}
 
#total-amount {
    color: #e74c3c;
}
 
#total-weight {
    color: #3498db;
}
 
.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
 
.history-weight {
    font-size: 11px;
    color: #3498db;
    font-weight: 500;
}
 
.history-section .history-list .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
 
.history-section .history-list .history-item:last-child {
    margin-bottom: 0;
}
 
.history-section .history-list .history-item .history-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}
 
.history-section .history-list .history-item .history-spec {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
 
.history-section .history-list .history-item .history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}
 
.history-section .history-list .history-item .history-price {
    flex-shrink: 0;
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
 
.calc-section .form-group {
    margin-bottom: 12px;
}
 
.calc-section .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
 
.calc-section .form-group label::before {
    content: "📏";
    font-size: 12px;
}
 
.calc-section .form-group:nth-child(2) label::before {
    content: "🏷️";
}
 
.calc-section .form-group input,
.calc-section .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}
 
.calc-section .form-group input::placeholder {
    color: #aaa;
}
 
.calc-section .form-group input:focus,
.calc-section .form-group select:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
    background: white;
}
 
.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    border: none;
    padding: 11px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(26, 188, 156, 0.25);
}
 
.calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(26, 188, 156, 0.35);
}
 
.calc-btn:active {
    transform: translateY(0);
}
 
.result-section {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
}
 
.price-card {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
 
.ai-price-card, .user-price-card {
    flex: 1;
    padding: 8px 6px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
.ai-price-card {
    background: linear-gradient(135deg, #e8f8f5 0%, #d1f2eb 100%);
    border: 1px solid rgba(26, 188, 156, 0.2);
}
 
.user-price-card {
    background: linear-gradient(135deg, #fdf4f3 0%, #fdecea 100%);
    border: 1px solid rgba(231, 76, 60, 0.2);
}
 
.card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
 
.label-icon {
    font-size: 12px;
}
 
.label-text {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}
 
.price-display, .price-input-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
 
.currency {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}
 
#ai-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #1abc9c;
    letter-spacing: -0.5px;
}
 
#user-price {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    transition: all 0.3s ease;
}
 
#user-price::placeholder {
    color: rgba(231, 76, 60, 0.4);
}
 
#user-price:focus {
    outline: none;
    background: white;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}
 
.result-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}
 
.summary-tag {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}
 
.summary-divider {
    color: #ddd;
    font-size: 14px;
}
 
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
    width: 100%;
}
 
.btn-icon {
    font-size: 16px;
}
 
.btn-text {
    letter-spacing: 0.3px;
}
 
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
}
 
.submit-btn:active {
    transform: translateY(0);
}
 
.submit-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
 
.history-list {
    max-height: 300px;
    overflow-y: auto;
}
 
.history-list::-webkit-scrollbar {
    width: 6px;
}
 
.history-list::-webkit-scrollbar-track {
    background: transparent;
}
 
.history-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}
 
.history-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
 
.empty-history {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 13px;
}
 
.empty-history::before {
    content: "📝";
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}
 
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.history-item:last-child {
    margin-bottom: 0;
}
 
.history-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-color: #1abc9c;
}
 
.history-info {
    flex: 1;
}
 
.history-spec {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
 
.history-spec::before {
    content: "📦";
    font-size: 14px;
}
 
.history-time {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}
 
.history-time::before {
    content: "🕐";
    font-size: 11px;
}
 
.history-price {
    font-size: 15px;
    font-weight: 700;
    color: #1abc9c;
    background: rgba(26, 188, 156, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
}
 
.error-message {
    color: #e74c3c;
    font-size: 13px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    margin-top: 8px;
}
 
/* 登录弹窗 */
.simple-calc-body .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
 
.simple-calc-body .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.simple-calc-body .modal-header {
    position: relative;
    padding: 20px 16px 12px;
    text-align: center;
}
 
.simple-calc-body .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
 
.simple-calc-body .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.simple-calc-body .header-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
 
.simple-calc-body .modal-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
}
 
.simple-calc-body .header-subtitle {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
 
.simple-calc-body .close-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}
 
.simple-calc-body .modal-body {
    padding: 0 24px 24px;
}
 
.simple-calc-body .modal-body .form-group {
    margin-bottom: 16px;
}
 
.simple-calc-body .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
 
.simple-calc-body .input-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    z-index: 1;
}
 
.simple-calc-body .input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
 
.simple-calc-body .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
 
.simple-calc-body .input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
    z-index: 10;
}
 
.simple-calc-body .input-with-icon .form-control {
    width: 100% !important;
    padding: 14px 16px 14px 48px !important;
    background: #f8f9fa !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}
 
.simple-calc-body .input-with-icon .form-control::placeholder {
    color: #aaa !important;
}
 
.simple-calc-body .input-with-icon .form-control:focus {
    outline: none !important;
    background: white !important;
    border-color: #1abc9c !important;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1) !important;
}
 
.simple-calc-body .input-wrapper input::placeholder {
    color: #aaa;
}
 
.simple-calc-body .input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: #1abc9c;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
}
 
.simple-calc-body .error-message {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    color: #e74c3c;
    font-size: 13px;
}
 
.simple-calc-body .modal-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 20px;
}
 
.simple-calc-body .btn-primary,
.simple-calc-body .btn-secondary {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
 
.simple-calc-body .btn-primary {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}
 
.simple-calc-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}
 
.simple-calc-body .btn-primary:active {
    transform: translateY(0);
}
 
.simple-calc-body .btn-arrow {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.3s ease;
}
 
.simple-calc-body .btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}
 
.simple-calc-body .btn-secondary {
    background: #f0f0f0;
    color: #666;
}
 
.simple-calc-body .btn-secondary:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}
 
@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
    color: #856404;
}
 
.data-tips ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
 
.data-tips li {
    margin-bottom: 4px;
}
 
.data-tips li:last-child {
    margin-bottom: 0;
}
 
/* 响应式 */
@media (max-width: 768px) {
    .data-actions {
        grid-template-columns: 1fr;
    }
    
    .data-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
/* 数据表格 */
.data-table-wrapper {
    width: 100%;
}
 
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
 
.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
 
.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}
 
.data-table tr:hover {
    background: #f8f9fa;
}
 
/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
 
/* 防止页面被撑开的全局样式 */
.admin-main {
    overflow-x: hidden;
    box-sizing: border-box;
}
 
/* 登录弹窗表单标签样式 */
.simple-calc-body .modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
 
/* 登录弹窗输入框样式 */
.simple-calc-body .modal-body .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
 
.simple-calc-body .modal-body .form-group input::placeholder {
    color: #aaa;
}
 
.simple-calc-body .modal-body .form-group input:focus {
    outline: none;
    background: white;
    border-color: #1abc9c;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
}
 
/* 验证码输入框组 */
.simple-calc-body .sms-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
 
.simple-calc-body .sms-code-group input {
    flex: 1;
}
 
.simple-calc-body .btn-sms {
    padding: 18px 8px !important;
    background: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    width: auto !important;
    max-width: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
    height: auto !important;
    text-align: center !important;
    vertical-align: middle !important;
}
 
.simple-calc-body .btn-sms:hover {
    background: #2980b9;
}
 
.simple-calc-body .btn-sms:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
 
/* 找回密码链接 */
.simple-calc-body .forgot-password {
    text-align: right;
    margin-top: 8px;
}
 
.simple-calc-body .forgot-password a {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}
 
.simple-calc-body .forgot-password a:hover {
    text-decoration: underline;
}
 
/* 隐藏表单组 */
.simple-calc-body .form-group-hidden {
    display: none;
}
 
/* 错误消息成功状态 */
.simple-calc-body .error-message.success {
    background: rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
}
 
.admin-card {
    box-sizing: border-box;
}
 
* {
    box-sizing: border-box;
}
 
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}
 
/* 管理中心响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .admin-sidebar.mobile-open {
        left: 0;
    }
    
    .admin-sidebar .logo {
        padding: 20px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-header {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 17px;
        flex: 1;
    }
    
    .admin-header .user-info {
        gap: 10px;
    }
    
    .admin-header .user-info span {
        font-size: 13px;
    }
    
    .admin-card {
        padding: 20px;
    }
    
    .admin-card h2 {
        font-size: 16px;
    }
    
    /* 数据表格移动端滚动 */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    .data-table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .data-table-wrapper::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .data-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* 让表格在移动端更紧凑 */
    .data-table-wrapper .data-table {
        min-width: auto;
        width: 100%;
        font-size: 11px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 5px;
        font-size: 11px;
    }
    
    /* 缩短表格列标题 */
    .data-table th {
        white-space: nowrap;
    }
    
    /* 按钮组在表格中更小 */
    .data-table .btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .data-table .btn-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .data-table .btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* 按钮组移动端优化 */
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: calc(50% - 5px);
        font-size: 12px;
        padding: 8px 10px;
    }
    
    /* API申请按钮 */
    #show-api-form-btn {
        width: 100%;
        font-size: 14px;
    }
    
    /* 表单优化 */
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* 统计卡片移动端 */
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    /* 统计图表 */
    .trend-chart {
        gap: 5px;
    }
    
    .chart-bar-wrapper {
        max-width: 40px;
    }
    
    .chart-label {
        font-size: 10px;
    }
    
    /* 应用状态卡片 */
    .application-status-card {
        padding: 15px;
    }
    
    /* 会员信息卡片移动端 */
    .member-profile-card {
        padding: 20px;
    }
    
    .username {
        font-size: 22px;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    /* API信息移动端 */
    .api-url-info {
        padding: 15px;
    }
    
    .api-url-info p {
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
    }
    
    /* 账户设置和会员信息移动端移除左边距 */
    #account-settings .api-form,
    #member-info .api-form {
        margin-left: 0;
    }
}
 
/* API使用统计趋势图样式 */
.chart-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 200px;
}
 
.trend-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    padding: 10px 0;
    gap: 10px;
}
 
.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 60px;
}
 
.chart-bar {
    width: 100%;
    background: linear-gradient(to top, #3498db, #1abc9c);
    border-radius: 4px 4px 0 0;
    min-height: 5px;
    transition: all 0.3s ease;
}
 
.chart-bar:hover {
    background: linear-gradient(to top, #2980b9, #16a085);
}
 
.chart-label {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: center;
}
 
.chart-value {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    margin-bottom: 4px;
}
 
/* 统计卡片增强样式 */
#api-overall-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
 
#api-overall-stats .stat-label,
#api-overall-stats .stat-desc {
    color: rgba(255, 255, 255, 0.8);
}
 
#api-usage-stats .stat-card:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
 
#api-usage-stats .stat-card:first-child .stat-label,
#api-usage-stats .stat-card:first-child .stat-desc {
    color: rgba(255, 255, 255, 0.8);
}
 
#api-usage-stats .stat-card:last-child {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}
 
#api-usage-stats .stat-card:last-child .stat-label,
#api-usage-stats .stat-card:last-child .stat-desc {
    color: rgba(255, 255, 255, 0.8);
}
 
/* 小节标题样式 */
.section-subtitle {
    font-size: 16px;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}
 
/* 日期选择器样式 */
input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}
 
/* 去掉数字输入框的增减按钮 */
*::-webkit-inner-spin-button, 
*::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
 
/* 全局样式重置 */
* {
    box-sizing: border-box;
}
 
/* 确保所有数字输入框都没有增减按钮 */
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
 
/* 针对产品表格中的数字输入框 */
.product-table input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
 
/* 针对分类明细中的数字输入框 */
.category-quantity {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
 
/* 分类明细表单样式 */
.category-detail-container {
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    min-width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
    white-space: nowrap;
}
 
.category-detail-container > div {
    display: inline-block;
    vertical-align: top;
    margin-right: 8px;
}
 
.category-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    margin-right: 5px;
}
.category-inputs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 3px;
}
 
.category-inputs select {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    background-image: none;
    padding-right: 8px;
    cursor: text;
    position: relative;
    overflow: hidden;
}
 
/* 去掉IE和Edge浏览器中的下拉图标 */
.category-inputs select::-ms-expand {
    display: none;
}
 
/* 为所有浏览器添加一个覆盖层来隐藏下拉图标 */
.category-inputs select {
    text-indent: 0.01px;
    text-overflow: '';
}
 
.category-inputs input {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}
 
.category-inputs input:focus, .category-inputs select:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
/* 去掉datalist输入框的下拉图标 */
.category-inputs input[list] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    background-position: right center;
    background-repeat: no-repeat;
    padding-right: 8px;
}
 
/* 去掉WebKit浏览器中的下拉图标 */
.category-inputs input[list]::-webkit-calendar-picker-indicator {
    display: none;
}
 
/* 去掉Firefox浏览器中的下拉图标 */
.category-inputs input[list]::-moz-placeholder {
    opacity: 0;
}
 
/* 确保输入框没有背景图片 */
.category-inputs input[list] {
    background: white;
}
 
.category-actions {
    display: flex;
    gap: 3px;
    margin-top: 0;
    align-items: center;
}
 
.add-category-btn, .remove-category-btn {
    padding: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
}
 
.add-category-btn {
    background: #1abc9c;
    color: white;
}
 
.add-category-btn:hover {
    background: #16a085;
}
 
.remove-category-btn {
    background: #e74c3c;
    color: white;
}
 
.remove-category-btn:hover {
    background: #c0392b;
}
 
/* 操作按钮样式 */
.add-btn, .remove-btn {
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    box-sizing: border-box;
}
 
.add-btn {
    background: #1abc9c;
    color: white;
}
 
.add-btn:hover {
    background: #16a085;
}
 
.remove-btn {
    background: #e74c3c;
    color: white;
}
 
.remove-btn:hover {
    background: #c0392b;
}
 
/* 特定页面的操作按钮样式（不影响首页） */
.admin-action-buttons,
.form-action-buttons {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-direction: row;
    height: 40px;
}
 
.admin-action-buttons button,
.form-action-buttons button {
    margin-right: 5px;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    vertical-align: middle;
}
 
/* API信息部分样式 */
.api-info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
 
.api-url-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}
 
.api-url-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}
 
.api-url-info p {
    margin-bottom: 12px;
    font-size: 13px;
    color: #34495e;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    line-height: 1.6;
}
 
/* API密钥复制样式 */
.api-key-copy {
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Courier New', Courier, monospace;
    transition: color 0.2s ease;
}
 
.api-key-copy:hover {
    color: #2980b9;
}

/* API认证信息样式 */
.api-credentials {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.api-credentials h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}

.credential-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
    align-items: center;
}

.credential-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 120px;
    margin-right: 10px;
    font-size: 13px;
}

.credential-value {
    flex: 1;
    font-size: 13px;
    color: #1f2937;
    word-break: break-all;
}

/* API类型列表样式 */
.api-types-section {
    margin-top: 20px;
}

.api-types-section h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}

.api-types-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.api-type-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s ease;
}

.api-type-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.api-type-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    display: block;
}

.api-type-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* 短信配置样式 */
.sms-config-section {
    margin-top: 20px;
}

.sms-config-section h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}

.sms-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.sms-config-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.config-label {
    font-weight: 500;
    color: #4b5563;
    min-width: 140px;
    margin-right: 8px;
    font-size: 12px;
}

.config-value {
    font-size: 12px;
    color: #1f2937;
    font-weight: 500;
}

.config-value.quota-remaining {
    color: #10b981;
    font-weight: 600;
}

/* API使用示例样式 */
.api-usage-section {
    margin-top: 20px;
}

.api-usage-section h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}

.code-block {
    background: #1f2937;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.code-block pre {
    color: #e5e7eb;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== 管理后台移动端样式 ========== */
 
/* 移动端菜单按钮 */
.admin-mobile-menu-btn {
    display: none;
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
 
.admin-mobile-menu-btn:active {
    transform: scale(0.95);
}
 
.admin-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
 
.admin-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
 
.admin-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
 
.admin-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
 
/* 移动端遮罩层 */
.admin-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
 
.admin-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
 
/* 管理后台移动端布局 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .admin-mobile-menu-btn {
        display: flex;
    }
 
    .admin-mobile-overlay.active {
        display: block;
    }
 
    /* 侧边栏移动端样式 */
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        width: 260px;
    }
 
    .admin-sidebar.mobile-open {
        left: 0;
    }
 
    .admin-sidebar .logo {
        padding: 20px;
        margin-bottom: 15px;
    }
 
    .admin-sidebar .logo h2 {
        font-size: 16px;
    }
 
    /* 导航菜单移动端优化 */
    .admin-sidebar .nav-menu a {
        padding: 14px 20px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
 
    .admin-sidebar .nav-menu a.active {
        background: rgba(26, 188, 156, 0.2);
        border-left: none;
        border-right: 3px solid #1abc9c;
    }
 
    .admin-sidebar .nav-menu a i {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }
 
    /* 主内容区移动端 */
    .admin-main {
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
    }
 
    /* 顶部导航栏移动端 */
    .admin-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 12px 15px;
        padding-left: 70px;
        gap: 10px;
        border-radius: 0;
        z-index: 998;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
 
    .admin-header h1 {
        font-size: 16px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
 
    .admin-header .user-info {
        gap: 10px;
    }
 
    .admin-header .user-info span {
        font-size: 12px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    /* 内容卡片移动端 */
    .admin-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
 
    .admin-card h2 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
 
    .admin-card h3 {
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
 
    /* 统计卡片网格移动端 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
 
    .stat-card {
        padding: 20px 15px;
    }
 
    .stat-card .stat-value {
        font-size: 28px;
        margin: 10px 0;
    }
 
    .stat-card .stat-label {
        font-size: 13px;
    }
 
    .stat-card .stat-desc {
        font-size: 11px;
    }
 
    /* 表格移动端横向滚动 */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
 
    .data-table-wrapper::-webkit-scrollbar {
        height: 4px;
    }
 
    .data-table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
 
    .data-table-wrapper::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
 
    .data-table {
        min-width: 600px;
        font-size: 12px;
    }
 
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
 
    .data-table th {
        white-space: nowrap;
        font-size: 11px;
    }
 
    /* 表格按钮移动端 */
    .data-table .btn {
        font-size: 11px;
        padding: 5px 8px;
        margin: 2px;
    }
 
    .data-table .btn-sm {
        font-size: 10px;
        padding: 4px 6px;
    }
 
    /* 按钮组移动端 */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
 
    .btn-group .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 13px;
        padding: 10px 12px;
        text-align: center;
    }
 
    /* 表单移动端 */
    .form-group {
        margin-bottom: 15px;
    }
 
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
 
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 12px;
        border-radius: 8px;
    }
 
    .form-group textarea {
        min-height: 100px;
    }
 
    /* 按钮移动端 */
    .btn {
        width: 100%;
        max-width: none;
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
 
    .btn:last-child {
        margin-bottom: 0;
    }
 
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        width: auto;
    }
 
    /* 模态框移动端 */
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }
 
    .modal-content {
        width: 100%;
        max-width: none;
        padding: 20px;
        border-radius: 12px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
 
    .modal-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
 
    .modal-header h3 {
        font-size: 16px;
    }
 
    .modal-body {
        padding: 10px 0;
    }
 
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
 
    .modal-actions .btn {
        width: 100%;
        margin-bottom: 0;
    }
 
    /* 模板网格移动端 */
    .template-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
 
    .template-card {
        padding: 18px;
    }
 
    .template-icon {
        font-size: 24px;
    }
 
    .template-title {
        font-size: 14px;
    }
 
    /* 刷新按钮移动端 */
    .btn-refresh {
        padding: 8px 12px;
        font-size: 12px;
    }
 
    .refresh-icon {
        font-size: 14px;
    }
 
    /* API申请详情移动端 */
    .api-application-detail {
        font-size: 13px;
    }
 
    .api-application-detail .info-item {
        padding: 10px 0;
    }
 
    .api-application-detail .label {
        width: 90px;
        font-size: 12px;
    }
 
    /* 训练数据分组列表移动端 */
    #train-data-list-grouped > div {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
 
    #train-data-list-grouped > div > div:first-child {
        padding: 12px 15px;
        font-size: 13px;
    }
 
    /* 用户详情移动端 */
    .user-detail {
        font-size: 13px;
    }
 
    .detail-row {
        padding: 12px 0;
    }
 
    .detail-label {
        width: 80px;
        font-size: 12px;
    }
 
    /* 快捷模板按钮移动端 */
    .admin-card .btn.btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        display: inline-block;
        width: auto;
        margin-right: 8px;
        margin-bottom: 8px;
    }
 
    /* 系统消息移动端 */
    .alert {
        font-size: 13px;
        padding: 12px 15px;
        border-radius: 8px;
    }
 
    /* 状态徽章移动端 */
    .status-badge {
        padding: 4px 10px;
        font-size: 11px;
        white-space: nowrap;
    }
 
    /* API申请按钮移动端 */
    #show-api-form-btn {
        width: 100%;
        font-size: 14px;
        padding: 14px;
    }
 
    /* 用户信息详情移动端 */
    .user-info {
        font-size: 12px;
    }
 
    .user-info a {
        font-size: 12px;
    }
 
    /* 分组数据表移动端 */
    #train-data-list-grouped table {
        font-size: 11px;
    }
 
    #train-data-list-grouped th,
    #train-data-list-grouped td {
        padding: 8px 5px;
    }
 
    #train-data-list-grouped input {
        width: 60px !important;
        padding: 4px !important;
        font-size: 11px !important;
    }
 
    /* 图表移动端 */
    .chart-container {
        padding: 15px;
    }
 
    .trend-chart {
        gap: 5px;
    }
 
    .chart-bar-wrapper {
        max-width: 35px;
    }
 
    .chart-label {
        font-size: 9px;
    }
 
    /* section-subtitle移动端 */
    .section-subtitle {
        font-size: 14px;
        margin: 20px 0 10px 0;
    }
 
    /* API使用统计移动端 */
    #api-overall-stats .stat-card {
        padding: 18px 15px;
    }
 
    /* 快捷模板行移动端 */
    .template-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 15px;
    }
 
    .template-icon {
        font-size: 28px;
        margin-bottom: 0;
    }
 
    .template-content {
        flex: 1;
    }
 
    .template-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }
 
    .template-desc {
        font-size: 11px;
    }
 
    /* 消息模板移动端 */
    .message-template-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
 
    .message-template-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }
 
    .message-template-item:active {
        transform: scale(0.98);
    }
 
    .message-template-item i {
        font-size: 24px;
    }
 
    .message-template-item span {
        font-size: 13px;
        font-weight: 500;
    }
}
 
/* 移动端隐藏类 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}
 
/* 移动端专用显示类 */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
 
    .mobile-only-flex {
        display: flex !important;
    }
}
 
/* 超小屏幕移动端优化 */
@media (max-width: 480px) {
    .admin-header {
        padding-left: 60px;
    }
 
    .admin-header h1 {
        font-size: 14px;
    }
 
    .admin-mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
 
    .admin-mobile-menu-btn span {
        width: 18px;
    }
 
    .admin-main {
        padding: 15px 12px;
        padding-top: 65px;
    }
 
    .admin-card {
        padding: 15px 12px;
    }
 
    .admin-card h2 {
        font-size: 15px;
    }
 
    .stat-card .stat-value {
        font-size: 24px;
    }
 
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
 
    .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
 
    .data-table {
        min-width: 500px;
        font-size: 11px;
    }
 
    .data-table th,
    .data-table td {
        padding: 8px 5px;
        font-size: 11px;
    }
 
    .template-card {
        padding: 12px;
    }
 
    .template-icon {
        font-size: 22px;
    }
 
    .modal-content {
        padding: 15px;
    }
}
 
/* 移动端横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .admin-sidebar {
        width: 220px;
    }
 
    .admin-main {
        padding-top: 60px;
    }
 
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
/* 移动端body滚动修复 */
@media (max-width: 768px) {
    body {
        display: block;
        min-height: 100vh;
    }
 
    /* 训练数据表格移动端隐藏列 */
    #train-data-list-grouped .data-table th:nth-child(5),
    #train-data-list-grouped .data-table td:nth-child(5),
    #train-data-list-grouped .data-table th:nth-child(6),
    #train-data-list-grouped .data-table td:nth-child(6),
    #train-data-list-grouped .data-table th:nth-child(7),
    #train-data-list-grouped .data-table td:nth-child(7) {
        display: none;
    }
 
    /* 添加训练数据表单移动端 */
    #train-data-list-grouped [id^="add-train-data-form-"] {
        padding: 12px;
    }
 
    #train-data-list-grouped [id^="add-train-data-form-"] .form-control {
        width: 100% !important;
        font-size: 13px;
        padding: 8px 10px;
    }
 
    #train-data-list-grouped [id^="add-train-data-form-"] button {
        flex: 1;
        min-width: auto;
    }
 
    /* 训练数据添加按钮移动端 */
    #train-data-list-grouped > div > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }
 
    #train-data-list-grouped > div > div:first-child button {
        flex: 1 !important;
        min-width: auto;
        padding: 6px 12px;
        font-size: 12px;
    }
 
    /* 材料类型列表移动端隐藏状态列 */
    #material-list th:nth-child(4),
    #material-list td:nth-child(4) {
        display: none;
    }
 
    /* API申请列表移动端不撑超屏幕 */
    #api-applications-list td {
        word-wrap: break-word;
        word-break: break-all;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    #api-applications-list td:nth-child(3),
    #api-applications-list td:nth-child(4) {
        max-width: 80px;
    }
 
    /* 最近调用记录移动端不撑超屏幕 */
    #api-usage-logs td {
        word-wrap: break-word;
        word-break: break-all;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    #api-usage-logs td:nth-child(3) {
        max-width: 60px;
    }
 
    /* 移动端文本省略类 */
    .text-ellipsis-mobile {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    /* 移动端申请日期截断 */
    .apply-date-mobile {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    /* 移动端时间简短显示 */
    .time-short-mobile {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    /* 会员中心API申请记录列表移动端隐藏日期列 */
    .api-applications-list .data-table th:nth-child(1),
    .api-applications-list .data-table td:nth-child(1) {
        display: none;
    }
}
 
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
}
 
.mobile-warning.show {
    display: block !important;
}

/* 更高优先级保障：配合 id + show 类，覆盖 display-none!important */
#mobile-warning.show {
    display: block !important;
}
 
.mobile-warning-content {
    background: white !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    max-width: 400px !important;
    width: auto !important;
    min-width: 280px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
}
 
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
@keyframes slideUpCenter {
    from {
        opacity: 0;
        top: 70%;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
}
 
.mobile-warning-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
 
.mobile-warning-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}
 
.mobile-warning-content p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 20px 0;
}
 
.mobile-warning-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
 
.mobile-warning-btn-primary {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.mobile-warning-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
 
.mobile-warning-btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}
 
.mobile-warning-btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
 
/* 通知提示样式 */
.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}
 
.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
 
.notification-success {
    border-left: 4px solid #27ae60;
}
 
.notification-error {
    border-left: 4px solid #e74c3c;
}
 
.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}
 
.notification-success .notification-icon {
    background: #27ae60;
}
 
.notification-error .notification-icon {
    background: #e74c3c;
}
 
.notification-message {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}
 
/* 自定义确认框样式 */
.custom-confirm {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.custom-confirm.show {
    opacity: 1;
}
 
.custom-confirm-content {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
 
.custom-confirm.show .custom-confirm-content {
    transform: scale(1);
}
 
.custom-confirm-icon {
    font-size: 56px;
    margin-bottom: 20px;
}
 
.custom-confirm-message {
    font-size: 17px;
    color: #2c3e50;
    line-height: 1.5;
    margin: 0 0 30px 0;
    font-weight: 500;
}
 
.custom-confirm-success {
    color: #27ae60;
}
 
.custom-confirm-error {
    color: #e74c3c;
}
 
.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
 
.custom-confirm-btn-cancel {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.custom-confirm-btn-cancel:hover {
    background: #e0e0e0;
}
 
.custom-confirm-btn-confirm {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.custom-confirm-btn-confirm:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
 
/* 登录提示弹窗样式 */
.login-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}
 
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
 
.login-prompt.show {
    display: flex;
}
 
/* 数据管理页面样式 */
.realtime-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
 
.realtime-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.realtime-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
 
.realtime-stat-card.warning {
    background: #fff5f5;
    border-color: #ffcccc;
    box-shadow: 0 2px 10px rgba(245, 87, 108, 0.1);
}
 
.realtime-stat-card.warning:hover {
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.15);
}
 
.realtime-stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.9;
}
 
.realtime-stat-card .stat-info {
    flex: 1;
}
 
.realtime-stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}
 
.realtime-stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}
 
.data-mgmt-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
 
.data-mgmt-section .section-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}
 
.data-mgmt-section .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
 
.data-mgmt-section .btn-lg {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.data-mgmt-section .btn-lg .btn-icon {
    font-size: 18px;
}
 
.danger-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    color: #856404;
    font-size: 13px;
    margin-top: 12px;
}
 
.import-tips {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 12px 16px;
    color: #0c5460;
    font-size: 13px;
    margin-top: 12px;
}
 
@media (max-width: 768px) {
    .realtime-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .realtime-stat-card {
        padding: 16px;
    }
    
    .realtime-stat-card .stat-value {
        font-size: 22px;
    }
    
    .data-mgmt-section .action-row {
        flex-direction: column;
    }
    
    .data-mgmt-section .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
 
.login-prompt-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}
 
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.login-prompt-icon {
    font-size: 56px;
    margin-bottom: 20px;
}
 
.login-prompt-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}
 
.login-prompt-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}
 
.login-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
 
.login-prompt-btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.login-prompt-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
 
.login-prompt-btn-secondary {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.login-prompt-btn-secondary:hover {
    background: #e0e0e0;
}
 
.api-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
 
.api-info-card h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}
 
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    overflow-x: auto;
}
 
.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
 
.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
 
.api-param-list {
    margin: 10px 0 0 20px;
}
 
.api-param-list li {
    margin-bottom: 5px;
    font-size: 12px;
}
 
.api-param-list strong {
    color: #3498db;
}
 
/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}
 
.dropdown-toggle {
    position: relative;
    z-index: 1001;
}
 
.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}
 
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 250px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 13px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    transition: display 0.3s ease-in-out;
}
 
.dropdown:hover .dropdown-menu {
    display: block;
}
 
.dropdown-menu.show {
    display: block;
}
 
.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
 
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}
 
/* 确保下拉菜单在其他元素之上 */
.dropdown-container,
.menu-action-buttons {
    position: relative;
    z-index: 999;
}
 
/* 模板网格布局 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
 
/* 表格备注样式，强制填满单元格，细滚动条 */
.product-table textarea.product-remarks {
    width: 100%;
    height: 100%;
    min-height: 60px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    resize: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    line-height: 1.4;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-all;
}
 
/* 自定义细滚动条 */
.product-table textarea.product-remarks::-webkit-scrollbar {
    width: 4px;
}
 
.product-table textarea.product-remarks::-webkit-scrollbar-track {
    background: transparent;
}
 
.product-table textarea.product-remarks::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}
 
.product-table textarea.product-remarks::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
 
.product-table textarea.product-remarks:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
 
/* 备注列单元格，确保备注填满单元格 */
.product-table td:nth-child(11) {
    padding: 0;
    vertical-align: top;
    height: 100%;
}
 
/* 模板卡片样式 */
.template-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
 
.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}
 
.template-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
 
.template-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
 
.template-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}
 
/* 消息相关样式 */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}
 
.message-item {
    background: #fff;
    border-radius: 0;
    padding: 18px;
    border-left: 4px solid #3498db;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.message-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
 
.message-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}
 
.message-item:hover {
    background: #f8fafc;
    transform: none;
}
 
.message-item.unread {
    background: #fffbeb;
    border-left-color: #e74c3c;
    border-bottom: 1px solid #fef3c7;
}
 
.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
 
.message-type {
    font-size: 16px;
}
 
.message-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}
 
.message-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}
 
.message-status.unread {
    background: #e74c3c;
    color: white;
}
 
.message-status.read {
    background: #e8f5e9;
    color: #27ae60;
}
 
.message-content {
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 10px;
}
 
.message-time {
    color: #95a5a6;
    font-size: 12px;
}
 
.message-delete-btn {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
 
.message-delete-btn:hover {
    background: #c0392b;
}
 
/* 报价详情模态框样式 */
.quote-detail-modal-wrapper {
    width: 100%;
}
 
.quote-detail-header {
    background: #e74c3c;
    margin: -25px -25px 20px -25px;
    padding: 18px 25px;
    border-radius: 12px 12px 0 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.quote-detail-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
 
.quote-detail-price-badge {
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
}
 
.quote-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}
 
.quote-detail-info-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.quote-detail-info-item .label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
}
 
.quote-detail-info-item .value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}
 
.quote-detail-section-title {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f3f5;
}
 
.quote-detail-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8ecef;
    width: 100%;
}
 
.quote-detail-table-wrapper table {
    margin: 0;
    width: 100%;
    table-layout: fixed;
}
 
.quote-detail-table-wrapper thead {
    background: #f8f9fa;
}
 
.quote-detail-table-wrapper th {
    padding: 10px 8px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    font-size: 13px;
    text-align: center;
    width: 16.66%;
}
 
.quote-detail-table-wrapper td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f3f5;
    font-size: 13px;
    color: #34495e;
    text-align: center;
    width: 16.66%;
}
 
.quote-detail-table-wrapper tbody tr:hover {
    background: #f8fcfb;
}
 
.quote-detail-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f3f5;
    display: flex;
    justify-content: flex-end;
}
 
.quote-detail-footer .btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
}
 
.quote-detail-footer .btn-primary {
    background: #e74c3c;
}
 
.quote-detail-footer .btn-primary:hover {
    background: #c0392b;
}
 
/* 确保模态框真正居中显示 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
 
.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 25px;
    animation: modalSlideIn 0.2s ease-out;
}
 
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
/* 分类输入框样式 */
.category-name {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}
 
.category-quantity {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}
 
/* 产品材料输入框样式 */
.product-material {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}
 
/* 产品备注输入框样式 */
.product-remarks {
    width: 100%;
    min-height: 60px;
    max-height: 100px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.3s;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
}
 
/* 产品行操作单元格 */
.product-actions-cell {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
    text-align: center;
}
 
.product-actions-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
 
/* 客户信息显示 */
.customer-name {
    font-weight: bold;
}
 
.customer-phone {
    font-size: 11px;
    color: #666;
}
 
/* 打印报价单样式 */
.print-quote-header {
    text-align: center;
    margin-bottom: 20px;
}
 
.print-quote-info {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
}
 
.print-quote-info h4 {
    margin-top: 0;
}
 
.print-quote-table {
    width: 100%;
    border-collapse: collapse;
}
 
.print-quote-table td {
    width: 25%;
    padding: 5px;
}
 
.print-quote-section {
    margin-bottom: 20px;
}
 
.print-quote-section h4 {
    margin-top: 0;
}
 
.print-quote-product-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
 
.print-quote-product-table th,
.print-quote-product-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
 
.print-quote-product-table th {
    background-color: #f2f2f2;
}
 
.print-quote-bold {
    font-weight: bold;
}
 
.print-quote-list {
    margin-top: 5px;
}
 
.print-quote-list li {
    margin-bottom: 5px;
}
 
/* 图表柱状条 */
.chart-bar {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    transition: height 0.3s ease;
}
 
/* API文档样式 */
.api-highlight-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}
 
.api-highlight-box h4 {
    margin-bottom: 10px;
}
 
.api-desc {
    margin-bottom: 15px;
}
 
.api-version-stable {
    color: green;
}
 
.api-version-deprecated {
    color: orange;
}
 
.api-hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}
 
.endpoint-box-top {
    margin-top: 30px;
}
 
.loading-hidden {
    display: none;
}
 
.text-center {
    text-align: center;
}
 
/* 会员信息卡片样式 */
.member-profile-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
}
 
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
 
.avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
 
.avatar-icon {
    font-size: 36px;
}
 
.profile-basic {
    flex: 1;
}
 
.username {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}
 
.member-level {
    font-size: 15px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
}
 
.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
 
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
 
.detail-label {
    font-size: 13px;
    opacity: 0.8;
}
 
.detail-value {
    font-size: 15px;
    font-weight: 600;
}
 
/* 会员编辑表单 */
.member-edit-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}
 
.member-edit-form h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}
 
/* 报价详情移动端响应式 */
@media (max-width: 768px) {
    .quote-detail-modal-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .quote-detail-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .print-quote-product-table {
        min-width: 600px;
    }
    
    .member-profile-card {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .quote-detail-header {
        margin: -20px -20px 15px -20px;
        padding: 15px 20px;
    }
    
    .quote-detail-header h3 {
        font-size: 18px;
    }
    
    .quote-detail-price-badge {
        font-size: 16px;
        padding: 6px 14px;
        right: 20px;
    }
    
    .quote-detail-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quote-detail-info-item {
        padding: 10px 12px;
    }
    
    .quote-detail-info-item .value {
        font-size: 13px;
    }
    
    .quote-detail-section-title {
        font-size: 14px;
    }
    
    .quote-detail-table-wrapper {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .quote-detail-table-wrapper th,
    .quote-detail-table-wrapper td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 10px;
    }
}
 
/* 验证码模态框样式 */
.code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
 
.code-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
 
.code-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 95%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}
 
/* 响应式验证码模态框 */
@media (min-width: 480px) {
    .code-modal-content {
        max-width: 400px;
    }
}
 
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
 
.code-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.code-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
 
.code-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}
 
.code-modal-close:hover {
    opacity: 1;
}
 
.code-modal-body {
    padding: 24px;
}
 
.code-modal-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
 
#code-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}
 
#code-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
 
#code-input::placeholder {
    color: #ccc;
    letter-spacing: normal;
}
 
.code-modal-actions {
    display: flex;
    gap: 12px;
}
 
.code-modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
 
.code-modal-actions .btn-cancel {
    background: #f5f7fa;
    color: #666;
}
 
.code-modal-actions .btn-cancel:hover {
    background: #e8eaed;
}
 
.code-modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
 
.code-modal-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
 
/* 材质选择容器 */
.material-select-container {
    position: relative;
    display: flex;
    align-items: center;
}
 
.material-select-container .product-material {
    flex: 1;
    width: 100%;
    padding-right: 32px;
}
 
.material-dropdown-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.material-dropdown-btn:hover {
    background: #f5f5f5;
    color: #333;
}
 
/* 材质下拉选项 */
.material-dropdown {
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 6px;
    overflow: hidden;
}
 
.material-dropdown div:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
 
.material-dropdown div {
    padding: 8px 12px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
 
.material-dropdown div:last-child {
    border-bottom: none;
}
 
/* 分类下拉选项 */
.category-dropdown {
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 6px;
    overflow: hidden;
}
 
.category-dropdown div:hover {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}
 
.category-dropdown div {
    padding: 8px 12px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
 
.category-dropdown div:last-child {
    border-bottom: none;
}
 
 

/* =============== 保存状态指示器样式 =============== */
.save-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e8ecef;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.save-status-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

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

.save-status-text {
    color: #27ae60;
    font-weight: 500;
}

.save-status.saving .save-status-text {
    color: #3498db;
}

.save-status.saving .save-status-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.save-status-time {
    color: #95a5a6;
    font-size: 12px;
    margin-left: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .save-status {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .save-status-icon {
        font-size: 14px;
    }
    
    .save-status-time {
        font-size: 11px;
    }
}

/* =============== API类型选择器样式 =============== */
.api-type-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.api-type-selector .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e8ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-type-selector .checkbox-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.api-type-selector .checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.api-type-selector .checkbox-item input[type="checkbox"]:checked + .api-type-name {
    color: #3498db;
}

.api-type-selector .checkbox-item:has(input:checked) {
    border-color: #3498db;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fc 100%);
}

.api-type-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.api-type-desc {
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
}

/* API申请状态徽章 */
.api-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.api-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.api-status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.api-status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* API类型标签 */
.api-type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4fc;
    color: #3498db;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* API密钥显示 */
.api-key-display {
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.api-key-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.api-key-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2c3e50;
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-key-copy-btn {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

.api-key-copy-btn:hover {
    background: #2980b9;
}

/* API使用统计卡片 */
.api-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.api-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 18px;
    color: white;
    text-align: center;
}

.api-stat-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.api-stat-card.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.api-stat-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.api-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.api-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* ==========================================================================
   管理后台 - 意见反馈模块样式（页面级、不影响其它tab）
   ========================================================================== */

/* 1. 5张统计卡片：一行排满 + 响应式自动换行 */
.feedback-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.feedback-stat-card .stat-value {
    color: #10b981;
    font-size: 28px;
    font-weight: 700;
}

/* 2. 筛选栏：状态 + 类型 + 搜索 一行排列 + 窄屏自动换行 */
.feedback-admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}

.feedback-admin-filter-bar .filter-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.feedback-admin-filter-bar .filter-group label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.feedback-admin-filter-bar .filter-select,
.feedback-admin-filter-bar .filter-input {
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
    line-height: 1.2;
    box-sizing: border-box;
}

.feedback-admin-filter-bar .filter-group:nth-child(3) {
    flex: 1 1 280px;
    min-width: 220px;
}

.feedback-admin-filter-bar .filter-input {
    width: 100%;
}

/* 3. 分页容器（管理后台通用默认样式） */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 解决与 .hidden 同优先级导致 hidden 失效的问题 */
.admin-pagination.hidden {
    display: none !important;
}

/* 分页按钮：不要撑太宽，保持紧凑 */
.admin-pagination .btn {
    padding: 6px 18px;
    min-width: 80px;
    flex-shrink: 0;
}

/* 分页禁用状态：视觉灰化，鼠标禁止 */
.admin-pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 4. 状态徽章：补充processing/done状态色（其它状态类依赖全局.status-badge） */
.status-badge.status-processing {
    background: #fff7e6;
    color: #d48806;
    border: 1px solid #ffd591;
}

.status-badge.status-completed {
    background: linear-gradient(90deg, #52c41a, #73d13d);
    color: #fff;
    border: none;
}

/* ==========================================================================
   管理后台 - 反馈模块（反馈列表 / 空状态 / 错误提示 / 表格内微组件）
   ========================================================================== */

.fb-empty-box {
    padding: 50px 0;
    text-align: center;
    color: #888;
}

.fb-empty-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
    font-style: normal;
}

.fb-empty-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #666;
}

.fb-empty-sub {
    margin: 0;
    font-size: 13px;
}

.fb-error-box {
    padding: 30px;
    text-align: center;
    color: #f44336;
}

/* 表格列宽（反馈列表8列） */
.fb-col-id        { width: 60px; }
.fb-col-type      { width: 80px; }
.fb-col-status    { width: 120px; }
.fb-col-time      { width: 150px; }
.fb-col-op        { width: 180px; }
.fb-col-user      { min-width: 140px; }
.fb-col-content   { min-width: 260px; max-width: 380px; }
.fb-col-reply     { min-width: 220px; max-width: 360px; }

/* 用户列子样式 */
.fb-user-anon    { color: #999; }
.fb-user-phone   { color: #666; font-size: 12px; margin-top: 2px; }
.fb-user-contact { color: #888; font-size: 12px; margin-top: 2px; }

/* 内容列子样式 */
.fb-content-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.fb-content-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 回复列子样式 */
.fb-reply-box {
    background: #f0f7ff;
    border-left: 3px solid #4facfe;
    padding: 8px 10px;
    border-radius: 4px;
}
.fb-reply-meta {
    color: #888;
    font-size: 11px;
    margin-bottom: 4px;
}
.fb-reply-text {
    color: #333;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.fb-reply-empty {
    color: #bbb;
    font-size: 12px;
}

/* 时间列子样式 */
.fb-time-create {
    font-size: 12px;
    color: #666;
}
.fb-time-update {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}
.fb-unread-tag {
    display: inline-block;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-top: 6px;
}

/* ==========================================================================
   管理后台 - 删除 / 回复反馈 模态框：全局遮罩（叠加在通用 code-modal 之上）
   ========================================================================== */

.fb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 回复反馈的遮罩：z-index稍低、允许内容区padding/滚动（窄屏） */
.fb-modal-overlay--reply {
    z-index: 25000;
    background: rgba(0,0,0,0.55);
    padding: 20px;
    overflow-y: auto;
}

body.fb-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   管理后台 - 删除反馈 自定义确认弹窗
   ========================================================================== */

.fb-del-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    overflow: hidden;
}

.fb-del-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.fb-del-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.fb-del-body {
    padding: 22px 24px;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.fb-del-footer {
    padding: 14px 24px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fb-del-btn {
    padding: 7px 18px;
}

/* ==========================================================================
   管理后台 - 回复反馈 模态框
   ========================================================================== */

.fb-reply-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.fb-reply-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fb-reply-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.fb-reply-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.fb-reply-body {
    padding: 20px;
}

.fb-reply-orig-box {
    margin-bottom: 18px;
}

.fb-reply-loading {
    padding: 20px 0;
    text-align: center;
}

.fb-reply-form-item {
    margin-bottom: 14px;
}

.fb-reply-form-item--tight {
    margin-bottom: 10px;
}

.fb-reply-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.fb-reply-required {
    color: #f44336;
}

.fb-reply-count {
    text-align: right;
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

.fb-reply-footer {
    padding: 14px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fb-reply-btn {
    padding: 8px 20px;
}

/* 缓存未命中的原内容提示 */
.fb-orig-warn-box {
    background: #fff8e6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px 14px;
    color: #8c6d1f;
    font-size: 12px;
    line-height: 1.6;
}

/* 原反馈内容回显卡片 */
.fb-orig-card {
    background: #f7f8fa;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 14px 16px;
}

.fb-orig-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fb-orig-titlegroup {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fb-orig-type-tag {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.fb-orig-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.fb-orig-status-tag {
    font-size: 11px;
}

.fb-orig-idtime {
    color: #999;
    font-size: 11px;
}

.fb-orig-userline {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fb-orig-userline .fb-orig-uid {
    color: #aaa;
}

.fb-orig-content {
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

/* ==========================================================================
   移动端（<=768px） 反馈模块响应式适配
   ========================================================================== */
@media (max-width: 768px) {
    .feedback-admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .feedback-stat-card .stat-value {
        font-size: 22px;
    }

    .feedback-admin-filter-bar {
        padding: 12px;
        gap: 12px;
    }

    .feedback-admin-filter-bar .filter-group {
        flex-wrap: wrap;
    }

    .feedback-admin-filter-bar .filter-group label {
        width: 100%;
    }

    .feedback-admin-filter-bar .filter-group:nth-child(3) {
        flex: 1 1 100%;
        min-width: 0;
    }

    .fb-del-dialog,
    .fb-reply-dialog {
        width: 94%;
        max-width: none;
    }

    .fb-del-header,
    .fb-del-body,
    .fb-del-footer,
    .fb-reply-header,
    .fb-reply-body,
    .fb-reply-footer {
        padding-left: 14px;
    }
}

/* ==========================================================================
   会员中心 - 我的反馈记录卡片样式（分清主次、层次清晰）
   ========================================================================== */

.member-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-feedback-card {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-feedback-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #d0d7de;
}

.member-feedback-card--unread {
    border-left: 4px solid #e53935;
}

/* 卡片头部：类型标签 + 标题 + 状态徽章 + 新回复标签 */
.member-feedback-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #ebeef5;
    flex-wrap: wrap;
}

.member-feedback-card-header .feedback-type-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.member-feedback-card-header .feedback-type-suggestion {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.member-feedback-card-header .feedback-type-bug {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.member-feedback-card-header .feedback-type-complaint {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.member-feedback-card-header .feedback-type-other {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.member-feedback-card-header .feedback-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    flex: 1;
    min-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 状态徽章（会员卡片内的小徽章，比admin-table的略小） */
.member-feedback-card-header .status-badge {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    display: inline-block;
    color: #fff;
    flex-shrink: 0;
}

.member-feedback-card-header .status-pending {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.member-feedback-card-header .status-processing {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.member-feedback-card-header .status-approved {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.member-feedback-card-header .status-completed {
    background: linear-gradient(90deg, #52c41a, #73d13d);
}

.member-feedback-card-header .status-rejected {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.member-feedback-card-header .feedback-new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    animation: pulse-red 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 卡片主体 - 层叠式布局 */
.member-feedback-card-body {
    padding: 16px 18px;
}

/* 第一层：用户反馈卡片（内含官方回复） */
.member-feedback-card-body .fb-user-layer {
    background: #f4f9ff;
    border-left: 3px solid #1976d2;
    border-radius: 6px;
    padding: 14px 16px;
}

.member-feedback-card-body .fb-user-label {
    font-size: 11px;
    font-weight: 600;
    color: #1976d2;
    background: #e3f2fd;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.member-feedback-card-body .fb-user-layer .feedback-content-text {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.member-feedback-card-body .fb-user-layer .feedback-contact-line {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d0e4f7;
}

.member-feedback-card-body .fb-user-layer .feedback-contact-line strong {
    color: #555;
}

/* 官方回复（内嵌在用户反馈卡片内，绿色边框区分） */
.member-feedback-card-body .fb-reply-layer {
    margin-top: 12px;
    background: #eaf7ea;
    border: 1px solid #c8e6c8;
    border-left: 3px solid #27ae60;
    border-radius: 4px;
    padding: 10px 12px;
}

.member-feedback-card-body .fb-reply-label {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    background: #d5f0d5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.member-feedback-card-body .fb-reply-content {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.member-feedback-card-body .fb-reply-time {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed #c8e6c8;
}

.member-feedback-card-body .fb-reply-layer--empty {
    background: #f5f5f5;
    border-left-color: #bbb;
}

.member-feedback-card-body .fb-reply-layer--empty .fb-reply-label {
    color: #888;
    background: #eee;
}

.member-feedback-card-body .fb-reply-empty {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    padding: 4px 0;
}

.member-feedback-card-body .feedback-read-action {
    margin-top: 10px;
    text-align: right;
}

/* 卡片底部 */
.member-feedback-card-footer {
    padding: 10px 18px;
    background: #fafbfc;
    border-top: 1px solid #ebeef5;
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-feedback-card-footer .feedback-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-feedback-card-footer .feedback-unread-indicator {
    color: #e53935;
    font-weight: 600;
}

.member-feedback-card-footer .feedback-delete-btn {
    background: none;
    border: 1px solid #e53935;
    color: #e53935;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.member-feedback-card-footer .feedback-delete-btn:hover {
    background: #e53935;
    color: #fff;
}

.member-feedback-card-footer .feedback-read-btn {
    background: none;
    border: 1px solid #1976d2;
    color: #1976d2;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.member-feedback-card-footer .feedback-read-btn:hover {
    background: #1976d2;
    color: #fff;
}

/* 导航栏红点徽章 - 紧贴文字右上角 */
.feedback-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4f, #e53935);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    margin-left: 2px;
    vertical-align: super;
    transform: translateY(-2px);
}

/* 系统消息的徽章保持正常 */
#unread-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    margin-left: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .member-feedback-card-header {
        padding: 12px 14px;
        gap: 6px;
    }

    .member-feedback-card-header .feedback-title {
        font-size: 13px;
    }

    .member-feedback-card-body {
        padding: 12px 14px;
    }

    /* 移动端内嵌回复适配 */
    .member-feedback-card-body .fb-reply-layer {
        margin-top: 10px;
        padding: 8px 10px;
    }

    .member-feedback-card-body .fb-user-layer {
        padding: 10px 12px;
    }

    .member-feedback-card-footer {
        padding: 8px 14px;
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* admin-content.html 内联样式替换类 */
.api-doc-alert {
    margin: 15px 0;
    padding: 12px 16px;
    border-left: 4px solid #3498db;
    background: #f0f8ff;
}

.api-doc-link {
    color: #2980b9;
    text-decoration: underline;
    font-weight: bold;
}

.api-doc-hint {
    color: #666;
    font-size: 13px;
}

.mb-16 {
    margin-bottom: 16px;
}

.btn-api-fix {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-hint {
    margin-left: 12px;
    color: #666;
    font-size: 13px;
}

.ml-10 {
    margin-left: 10px;
}

.btn-height-38 {
    height: 38px;
}

.hidden-element {
    display: none;
}

/* 通用样式类 - 内联样式替换 */
.display-none {
    display: none !important;
}

/* 导航栏 span 隐藏专用：优先级 0,3,1 > .header-login .nav-links span 的 0,2,1，防覆盖全显示 */
.header .nav-links span.display-none,
.header-login .nav-links span.display-none,
.nav-links span.display-none {
    display: none !important;
}

/* 登录态下隐藏登录/注册链接：同样防止被 .nav-links span display:flex 顶回显示 */
.header .nav-links #auth-links.display-none,
.header-login .nav-links #auth-links.display-none,
.nav-links #auth-links.display-none {
    display: none !important;
}

/* 防止 #user-info.hidden 被覆盖的三层保障 */
.header .nav-links #user-info.hidden,
.header-login .nav-links #user-info.hidden,
.nav-links #user-info.hidden {
    display: none !important;
}

.display-flex {
    display: flex;
}

.position-fixed {
    position: fixed;
}

.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bg-overlay-dark {
    background: rgba(0, 0, 0, 0.7);
}

.z-index-9999 {
    z-index: 9999;
}

.z-index-10000 {
    z-index: 10000;
}

.mobile-warning-box {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 400px;
    width: auto;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10000;
}

.icon-48 {
    font-size: 48px;
    margin-bottom: 16px;
}

.text-18-bold {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.text-13 {
    font-size: 13px;
}

.text-color-555 {
    color: #555;
}

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

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-outline {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

.btn-outline:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mt-24 {
    margin-top: 24px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mr-15 {
    margin-right: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-16 {
    margin-bottom: 16px;
}

.width-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-blue {
    color: #1976d2;
}

.text-blue-light {
    color: #4facfe;
}

.text-bold {
    font-weight: bold;
}

.bg-blue-light {
    background: #e3f2fd;
}

.api-doc-alert {
    margin: 15px 0;
    padding: 12px 16px;
    border-left: 4px solid #3498db;
    background: #f0f8ff;
}

.api-doc-link {
    color: #2980b9;
    text-decoration: underline;
    font-weight: bold;
}

.api-doc-hint {
    color: #666;
    font-size: 13px;
}

.mb-16 {
    margin-bottom: 16px;
}

.btn-api-fix {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-hint {
    margin-left: 12px;
    color: #666;
    font-size: 13px;
}

.ml-10 {
    margin-left: 10px;
}

.btn-height-38 {
    height: 38px;
}

/* admin-content.html 内联样式替换类 */
.admin-page-alert {
    margin: 15px 0;
    padding: 12px 16px;
    border-left: 4px solid #3498db;
    background: #f0f8ff;
}

.admin-page-link {
    color: #2980b9;
    text-decoration: underline;
    font-weight: bold;
}

.admin-page-hint {
    color: #666;
    font-size: 13px;
}

.paragraph-text {
    line-height: 1.5;
    margin: 0 0 20px 0;
}
