/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    padding: 2rem 0;
}

/* 服务介绍部分 */
.services {
    margin-bottom: 3rem;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.service-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* 订单表单部分 */
.order-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-form h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    /* 使标题样式与按钮保持一致 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.order-form h2:hover {
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 0.px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 2.0rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* 底部样式 */
footer {
    background: #56ff83;
    color: rgb(252, 4, 4);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.secondary {
    background: #6c757d;
}

/* 订单成功页面 */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-content h1 {
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.order-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: left;
}

.order-summary p {
    margin-bottom: 0.5rem;
}

/* 订单确认页面中的详情说明内容使用红色 */
.order-details p stronga {
    color: rgb(250, 4, 4);
}
#tronga {
    color: red;
}
/* 表单中的详情说明文字使用红色 */
#serviceDetails {
    color: red;
}

.actions {
    margin-top: 2rem;
}

/* 模态框样式 */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.4s;
    strongb: rgba(249, 6, 6, 0.5);
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.order-details p {
    margin-bottom: 0.5rem;
}

.payment-options {
    margin: 1.5rem 0;
}

.payment-options h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: rgb(249, 4, 4);
}

.payment-methods {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-btn {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.payment-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.payment-btn.selected {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.payment-btn.wechat-pay {
    color: #28a745;
}

.payment-btn.alipay {
    color: #1677ff;
}

.payment-btn.cash {
    color: #ffc107;
}

.modal-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    margin: 0 0.5rem;
}

/* 分享模态框 */
.share-modal {
    text-align: center;
}

.share-content {
    padding: 1rem;
}

.qr-code {
    margin: 1.5rem 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 10px;
    color: #999;
}

.share-tip {
    color: #666;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        padding: 1.5rem;
    }
    
    .success-content {
        padding: 2rem 1rem;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .services h2,
    .order-form h2 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}