
:root {
    --primary-red: #E60012;
    --primary-dark-red: #C0000D;
    --primary-gradient: linear-gradient(135deg, #E60012 0%, #C0000D 100%);
    --secondary-blue: #0052D4;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e8e8e8;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 6px 20px rgba(230, 0, 18, 0.15);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-radius: 16px;
    --border-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 装饰背景元素 */
.bg-decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.03;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--primary-red);
    top: -300px;
    right: -200px;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--secondary-blue);
    bottom: -200px;
    left: -100px;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 82, 212, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 82, 212, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

/* 主容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 产品卡片区域 - 简化版 */
.product-cards-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(230, 0, 18, 0.1);
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-red);
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card-simple {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-card-simple.selected {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.03) 0%, rgba(0, 82, 212, 0.03) 100%);
    box-shadow: var(--shadow-red);
}

.product-card-simple.selected::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.product-badge-simple {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-badge-simple.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.product-badge-simple.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.product-badge-simple.value {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #d63031;
}

.product-title-simple {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.price-section-simple {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.current-price-simple {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.original-price-simple {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.period-simple {
    font-size: 13px;
    color: var(--text-secondary);
}

.features-list-simple {
    list-style: none;
    margin-bottom: 15px;
}

.features-list-simple li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.features-list-simple li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.select-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-simple.selected .select-btn {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.select-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* 表单区域 */
.form-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-blue));
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(230, 0, 18, 0.1);
}

.form-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h2 i {
    color: var(--primary-red);
}

.form-step {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-label i {
    color: var(--primary-red);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.required::after {
    content: " *";
    color: var(--primary-red);
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
    outline: none;
}

.form-control.error {
    border-color: var(--primary-red);
    background-color: rgba(230, 0, 18, 0.02);
}

.form-control.select-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-hint i {
    color: var(--warning-color);
}

.error-message {
    color: var(--primary-red);
    font-size: 13px;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 12px;
}

.error-message.show {
    display: flex;
}

/* 提交按钮区域 */
.submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn i {
    font-size: 20px;
}

/* 申请记录区域 */
.application-records {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    display: none;
}

.application-records.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(230, 0, 18, 0.1);
}

.records-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.records-header h3 i {
    color: var(--primary-red);
}

.records-list {
    max-height: 300px;
    overflow-y: auto;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(230, 0, 18, 0.03);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(230, 0, 18, 0.08);
    transition: all 0.3s ease;
}

.record-item:hover {
    background: rgba(230, 0, 18, 0.05);
    transform: translateY(-2px);
}

.record-info {
    flex: 1;
}

.record-product {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.record-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.record-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.record-meta i {
    font-size: 12px;
}

.record-id {
    font-family: monospace;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--success-color);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    min-width: 160px;
    text-align: center;
}

.no-records {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-records i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.clear-records-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-records-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.form-security-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(230, 0, 18, 0.1);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.loading-content p {
    color: var(--text-secondary);
}

/* 成功提示 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.success-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--success-color);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--success-color);
    font-size: 50px;
}

.success-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.order-id {
    background: rgba(16, 185, 129, 0.1);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 18px;
    color: var(--success-color);
    margin: 25px 0;
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

.selected-product-summary {
    background: rgba(230, 0, 18, 0.05);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin: 15px 0;
    text-align: left;
    border: 1px solid rgba(230, 0, 18, 0.1);
}

.selected-product-summary h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.close-success {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.2);
}

/* 底部信息 */
.footer {
    text-align: center;
    padding: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: var(--primary-red);
}

.copyright {
    color: var(--text-light);
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .product-cards-container {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .record-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .record-id {
        width: 100%;
        text-align: left;
    }
    
    .application-records {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-title-simple {
        font-size: 16px;
    }
    
    .current-price-simple {
        font-size: 24px;
    }
    
    .record-meta {
        flex-direction: column;
        gap: 5px;
    }
}