/* ===================================
   单页面样式（How We Work风格）
   参考: psodesign.com
   =================================== */

/* Contact Us Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    margin: auto;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px 30px 30px;
}

.modal-body p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    text-align: center;
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background: #555;
}

.submit-btn:active {
    background: #222;
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px 20px 20px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Banner区域 */
.single-page-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 0; /* 与导航栏融合 */
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* 为导航栏留出空间 */
}

.banner-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-subtitle {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.6;
}

/* How We Work Section */
.how-we-work-section {
    padding: 80px 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.customization-section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 单页内容区域样式 */
.single-page-content {
    padding: 80px 0;
    background-color: #fff;
    min-height: 500px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 为数据库内容提供基础样式 */
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #2c3e50;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.content-wrapper h1 {
    font-size: 32px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.content-wrapper h2 {
    font-size: 28px;
}

.content-wrapper h3 {
    font-size: 24px;
}

.content-wrapper h4 {
    font-size: 20px;
}

.content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-wrapper li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-wrapper table th,
.content-wrapper table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.content-wrapper table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.content-wrapper blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.content-wrapper a {
    color: #3498db;
    text-decoration: none;
}

.content-wrapper a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.content-wrapper strong {
    font-weight: 600;
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-page-content {
        padding: 60px 0;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .content-wrapper h1 {
        font-size: 26px;
    }
    
    .content-wrapper h2 {
        font-size: 22px;
    }
    
    .content-wrapper h3 {
        font-size: 20px;
    }
    
    .content-wrapper p,
    .content-wrapper li {
        font-size: 15px;
    }
    
    .content-wrapper table {
        font-size: 14px;
    }
    
    .content-wrapper table th,
    .content-wrapper table td {
        padding: 8px;
    }
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #333;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* Customization Section */
.customization-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.customization-grid {
    margin-top: 40px;
}

.customization-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.customization-item.reverse {
    direction: rtl;
}

.customization-item.reverse > * {
    direction: ltr;
}

.customization-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.customization-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.customization-item:hover .customization-image img {
    transform: scale(1.05);
}

.customization-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.customization-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: 700;
    font-size: 18px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .customization-item,
    .customization-item.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }
    
    .customization-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .customization-content h3 {
        font-size: 24px;
    }
    
    .customization-content p {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .single-page-banner {
        height: 300px;
        margin-top: 60px; /* 移动端导航栏较小 */
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .how-we-work-section,
    .customization-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .step-number {
        font-size: 36px;
    }
    
    .customization-image {
        height: 250px;
    }
}

