/* 业务页面样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /* 防止移动端滚动条出现 */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 头部样式 */
.business-header {
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.business-header.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
}

.business-header.page-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 30px 20px;
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.header-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: block;
}

.dots span:nth-child(2) {
    background: rgba(255, 255, 255, 0.8);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content.form-page {
    max-width: 600px;
    margin-top: -10px;
}

.main-content.success-page {
    max-width: 500px;
}

/* 服务选择区域 */
.services-section {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.service-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.service-item .icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.service-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.service-text p {
    color: #666;
    font-size: 0.9rem;
}

/* 数据展示区域 */
.data-section, .reasons-section {
    padding: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.data-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.data-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.data-item:hover {
    transform: translateY(-5px);
}

.data-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.data-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.data-item p:last-child {
    color: #eaeaea;
    font-size: 0.9rem;
}

/* 理由展示网格 */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.reason-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.reason-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reason-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.reason-text span {
    display: block;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 5px;
}

.reason-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.reason-text p {
    color: #666;
    font-size: 0.85rem;
}

/* 表单样式 */
.form-section {
    padding: 30px;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    /* 防止移动端输入框导致页面变宽 */
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-static-value {
    display: inline-block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
}

.form-error-tip {
    display: none;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-left: 2px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

/* 说明区域 */
.instructions-section {
    padding: 30px;
}

.instructions-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.instructions-content p:last-child {
    margin-bottom: 0;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    margin-top: 40px;
    border-top: 1px solid #e1e5e9;
}

.footer p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .services-section {
        padding: 20px;
        gap: 15px;
    }
    
    .data-items {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reason-item {
        padding: 15px;
    }
    
    .form-section {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input {
        font-size: 16px; /* 防止iOS缩放 */
        min-height: 44px; /* iOS最小触摸区域 */
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .header-content h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        gap: 10px;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        min-height: 120px;
    }
    
    .service-item .icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }
    
    .service-text h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .service-text p {
        font-size: 0.8rem;
    }
    
    .reason-item {
        flex-direction: column;
        text-align: center;
    }
    
    .reason-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-section {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input {
        padding: 15px 12px;
        font-size: 16px; /* 防止iOS缩放 */
        min-height: 50px;
    }
    
    .submit-btn {
        padding: 18px;
        font-size: 1.1rem;
        min-height: 50px;
    }
}

/* 动画效果 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.bounceIn {
    animation-name: bounceIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* 悬停效果 */
.hover-effect {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 微信提示样式 */
.wechat-tip {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wechat-tip.show {
    display: flex;
}

.wechat-tip-content {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    margin: 20px;
    position: relative;
}

.wechat-tip-icon {
    font-size: 4rem;
    color: #07c160;
    margin-bottom: 20px;
    display: block;
}

.wechat-tip h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.wechat-tip p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.wechat-tip-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
}

.wechat-tip-steps ol {
    margin: 0;
    padding-left: 20px;
}

.wechat-tip-steps li {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.wechat-tip-qr {
    width: 120px;
    height: 120px;
    margin: 15px auto;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.wechat-tip-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.wechat-tip-btn:hover {
    background: #06ad56;
}
