﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-logo h1 {
    font-size: 1.8em;
    color: #667eea;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: #667eea;
}

.admin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.admin-btn:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    width: auto;
    font-size: 1.1em;
    padding: 15px 50px;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 80px 0;
}

.search-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.search-section p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1em;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

#search-btn {
    width: auto;
    padding: 15px 40px;
}

.search-results {
    margin-top: 40px;
    min-height: 200px;
}

/* 成功案例 */
.success-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.success-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.success-section p {
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    font-size: 1.1em;
}

.success-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.story-card h3 {
    margin-bottom: 15px;
    color: #667eea;
}

/* 表单区域 */
.form-section {
    background: white;
    padding: 80px 0;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.form-header p {
    font-size: 1.1em;
    color: #666;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 关于我们 */
.about-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #667eea;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #ccc;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 15px;
    }
    
    .navbar-menu a {
        font-size: 14px;
    }
    
    .admin-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .container {
        padding: 60px 20px;
    }
    
    .search-section h2,
    .success-section h2,
    .form-header h2,
    .about-section h2 {
        font-size: 2em;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .form-container {
        padding: 20px;
    }
}
/* 支付页面样式补充 */
.payment-card {
    max-width: 600px;
}

.amount-section, .payment-methods {
    margin-bottom: 30px;
    text-align: left;
}

.amount-title, .payment-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-item {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.amount-item:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.amount-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.amount-item.custom {
    grid-column: span 3;
    background: #fff3e0;
    border-color: #ffb74d;
    color: #f57c00;
}

.amount-item.custom.active {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.custom-amount-input {
    margin-top: 15px;
}

.custom-amount-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-amount-input input:focus {
    outline: none;
    border-color: #667eea;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option.wechat:hover {
    border-color: #09bb07;
    background: #f0f9f0;
}

.payment-option.alipay:hover {
    border-color: #1677ff;
    background: #f0f7ff;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option .payment-icon {
    font-size: 24px;
    margin-right: 10px;
}

.payment-option .payment-name {
    font-size: 16px;
    font-weight: 500;
}

.qr-payment-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: center;
    border: 2px dashed #667eea;
}

.qr-loading, .qr-status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
}

.qr-image-wrapper {
    margin: 20px 0;
}

.qr-image {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qr-tips {
    margin: 20px 0;
    font-size: 14px;
}

.qr-tips .amount-display {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 10px;
}

.status-loading {
    color: #667eea;
}

.status-success {
    color: #27ae60;
}

.status-error {
    color: #e74c3c;
}

.support-info {
    margin-top: 30px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.result-icon.success {
    background: #27ae60;
    color: white;
}

.result-icon.error {
    background: #e74c3c;
    color: white;
}

.result-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.result-detail {
    color: #666;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amount-item.custom {
        grid-column: span 2;
    }
    
    .payment-options {
        flex-direction: column;
    }
}