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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面切换样式 */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* 页面头部样式 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #667eea;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* 首页样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.logo p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* 成功案例滚动样式 */
.success-cases {
    margin-bottom: 40px;
}

.cases-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    height: 60px;
}

.case-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: #667eea;
    flex-shrink: 0;
}

.case-text {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.case-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    color: #666;
    font-size: 1.1em;
    opacity: 0;
}

.case-item:first-child {
    opacity: 1;
    animation: caseScroll 4s infinite;
}

.case-item:nth-child(2) {
    animation: caseScroll 4s infinite;
    animation-delay: 1s;
}

.case-item:nth-child(3) {
    animation: caseScroll 4s infinite;
    animation-delay: 2s;
}

.case-item:nth-child(4) {
    animation: caseScroll 4s infinite;
    animation-delay: 3s;
}

@keyframes caseScroll {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    35% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 领域选择宫格样式 */
.domain-grid {
    margin-bottom: 40px;
}

.domain-grid h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8em;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.domain-btn {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.domain-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
}

.domain-icon {
    font-size: 2.5em;
}

.domain-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* 表单样式 */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.case-example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.case-example h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.case-example p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* 按钮样式 */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-download {
    background-color: #e67e22;
    color: white;
}

.btn-download:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* 支付页面样式 */
.payment-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.service-preview {
    margin-bottom: 30px;
}

.service-preview h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-preview ul {
    list-style: none;
    padding: 0;
}

.service-preview li {
    padding: 10px 0;
    font-size: 1.1em;
    color: #666;
}

.payment-info {
    text-align: center;
    margin-bottom: 30px;
}

.payment-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.price {
    font-size: 3em;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.price-desc {
    color: #666;
    font-size: 1em;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.payment-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.payment-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.payment-btn:hover {
    border-color: #667eea;
}

.payment-btn.active {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.payment-icon {
    font-size: 2em;
}

.payment-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.pay-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

/* 支付成功页面样式 */
.success-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 2em;
}

.success-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.success-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    text-align: left;
}

.service-item h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-item p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1em;
}

.service-item ul,
.service-item ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-item li {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* 文档预览样式 */
.preview-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.preview-header h3 {
    color: #333;
    font-size: 1.6em;
}

.document-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    background-color: #fafafa;
    margin-bottom: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.document-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.document-header h4 {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.document-content {
    line-height: 1.8;
    color: #333;
}

.document-content h5 {
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    color: #333;
}

.document-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.document-content .highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 错误消息样式 */
.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group.error .error-message {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .intro p {
        font-size: 1em;
    }
    
    .cases-container {
        padding: 10px 15px;
        height: 50px;
    }
    
    .case-icon {
        font-size: 1.3em;
        margin-right: 10px;
    }
    
    .case-text {
        height: 25px;
    }
    
    .case-item {
        height: 25px;
        line-height: 25px;
        font-size: 1em;
        opacity: 0;
    }
    
    .case-item:first-child {
        opacity: 1;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .domain-btn {
        padding: 20px 15px;
    }
    
    .domain-icon {
        font-size: 2em;
    }
    
    .domain-name {
        font-size: 1em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .payment-content {
        padding: 20px;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .success-services {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-header h2 {
        font-size: 1.5em;
    }
    
    .cases-container {
        padding: 8px 12px;
        height: 45px;
    }
    
    .case-icon {
        font-size: 1.2em;
        margin-right: 8px;
    }
    
    .case-text {
        height: 22px;
    }
    
    .case-item {
        height: 22px;
        line-height: 22px;
        font-size: 0.9em;
        opacity: 0;
    }
    
    .case-item:first-child {
        opacity: 1;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .domain-btn {
        padding: 15px 10px;
    }
    
    .domain-icon {
        font-size: 1.8em;
    }
    
    .domain-name {
        font-size: 0.9em;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 1.2em;
    }
    
    .payment-content {
        padding: 15px;
    }
    
    .price {
        font-size: 2.5em;
    }
    
    .success-content {
        padding: 20px;
    }
    
    .success-icon {
        font-size: 3em;
    }
    
    .success-content h2 {
        font-size: 1.8em;
    }
}
