/* 按钮样式 */
.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;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.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;
}

/* 产品表格 */
.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;
}

/* 表单样式 */
.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;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.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;
}

.form-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top 5px;
}

.form-control-readonly {
    background: #f5f5f5;
}

/* 模态框样式 */
.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;
    }
}

.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;
}

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

.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;
}

.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;
}

.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);
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #000;
}

.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);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* 滑块验证弹窗 */
.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;
}

/* 自定义对话框样式 */
.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;
}

/* 表格样式 */
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;
}

/* 数据提示 */
.data-tips {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
}

.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;
}

/* 状态徽章 */
.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);
}

/* 数据表格 */
.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;
}

/* 用户链接 */
.user-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

.user-link:hover {
    color: #2980b9;
}

/* 内容卡片 */
.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;
}

.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;
}

.admin-card {
    box-sizing: border-box;
}

/* 搜索容器 */
.search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 300px;
}

/* 数据管理卡片 */
.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-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;
}

/* 设置页面样式 */
.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;
}

/* 数据统计 */
.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;
}

/* 统计卡片 */
.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;
}

/* 按钮组 */
.btn-group {
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: calc(50% - 5px);
    font-size: 12px;
    padding: 8px 10px;
}

/* 短信验证码按钮 */
.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;
}

/* 获取验证码按钮 - 登录弹窗 */
.btn-get-sms {
    margin-top: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.btn-get-sms:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.btn-get-sms:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.btn-get-sms:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(149, 165, 166, 0.2);
}

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

#login-modal .modal-body .form-control:focus {
    outline: none !important;
    border-color: #1abc9c !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1) !important;
}

.sms-code-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sms-code-group input {
    flex: 1.5;
    min-width: 0;
}

/* 登录按钮 */
.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);
}

/* 模态框中的按钮样式 */
.modal-content .btn-login,
.modal-content .btn-cancel {
    flex: 1;
    width: auto;
    padding: 15px;
    font-size: 16px;
}

/* 导航链接激活状态 */
.nav-link-active {
    color: #1abc9c;
    font-weight: 500;
    padding: 5px 10px;
}

/* 登出链接 */
.logout-link {
    color: #1abc9c;
}

/* 简易计算器页面logo样式 */
.simple-calc-logo {
    width: 32px;
    height: 32px;
    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: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* ============================================================
   意见反馈弹窗样式
   ============================================================ */
.feedback-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.feedback-modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 13px;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #eee;
}

.feedback-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    padding: 0 4px;
    font-weight: 300;
    transition: color 0.2s;
}

.feedback-modal-close:hover {
    color: #ffffff;
}

.feedback-modal-body {
    padding: 24px;
}

.feedback-login-tip {
    background: #fff8e6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #8c6d1f;
    font-size: 13px;
    line-height: 1.6;
}

.feedback-login-tip a {
    color: #4facfe;
    text-decoration: underline;
}

.feedback-form-group {
    margin-bottom: 18px;
}

.feedback-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 13px;
}

.feedback-required {
    color: #f44336;
    margin-left: 2px;
}

.feedback-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    outline: none;
}

.feedback-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-form-control::placeholder {
    color: #aaaaaa;
}

.feedback-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.feedback-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.feedback-btn-cancel {
    padding: 9px 22px;
    background: #ffffff;
    color: #555555;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #cccccc;
}

.feedback-btn-submit {
    padding: 9px 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feedback-btn-submit:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

.feedback-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 反馈导航链接样式 */
#feedback-nav-link {
    transition: all 0.2s;
}

#feedback-nav-link:hover {
    color: #667eea;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feedback-modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .feedback-modal-container {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .feedback-modal-header {
        padding: 14px 18px;
    }

    .feedback-modal-title {
        font-size: 16px;
    }

    .feedback-modal-close {
        font-size: 24px;
    }

    .feedback-modal-body {
        padding: 18px;
    }

    .feedback-login-tip {
        padding: 10px 14px;
        font-size: 12px;
    }

    .feedback-form-group {
        margin-bottom: 14px;
    }

    .feedback-form-control {
        padding: 9px 12px;
        font-size: 13px;
    }

    .feedback-modal-footer {
        padding: 12px 18px;
        gap: 10px;
    }

    .feedback-btn-cancel,
    .feedback-btn-submit {
        padding: 8px 18px;
        font-size: 13px;
        flex: 1;
    }
}
