/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h1 a {
    color: white;
    text-decoration: none;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 主内容区 */
main {
    padding: 40px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-download {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-download:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-download .icon {
    font-size: 1.5em;
}

.download-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download-link {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn-download-link:hover {
    background: #5568d3;
}

/* 按钮样式 */
.btn-primary {
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.product-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.product-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.product-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.price {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.discount {
    color: #28a745;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.btn-select {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select:hover {
    background: #5568d3;
}

/* 表单样式 */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.9em;
}

.form-divider {
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 订单结果 */
.order-result, .query-result, .verify-result {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.order-info, .order-details, .verify-details {
    margin-top: 20px;
}

.order-info p, .order-details p, .verify-details p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.note {
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.btn-copy {
    margin-left: 10px;
    padding: 5px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-copy:hover {
    background: #5568d3;
}

/* 错误消息 */
.error-message {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

.verify-result h3.success {
    color: #28a745;
}

.verify-result h3.error {
    color: #dc3545;
}

/* 链接按钮 */
.links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.link-btn {
    padding: 12px 30px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.link-btn:hover {
    background: #667eea;
    color: white;
}

/* 页脚 */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    main {
        padding: 20px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
