/*
Theme Name: Astra Child - Water Treatment Solution
Theme URI: https://norvis-group.com
Description: Child theme for Astra with Water Treatment Solution Tool
Author: Norvis Group
Author URI: https://norvis-group.com
Template: astra
Version: 2.0.1
*/

/* 基础继承样式 */
.water-treatment-solution-wrapper {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 容器布局 */
.water-treatment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 标题区域 */
.solution-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.main-title {
    color: #46b3c6; /* 更新标题色调 */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-subtitle {
    color: #4a5568;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 内容区域 - 调整为60%:40% */
.solution-content {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px;
}

/* 左侧表单区域 - 60% */
.solution-form-section {
    flex: 0 0 60%;
    padding: 40px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto; /* 选项框水平居中对齐 */
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    color: #46b3c6; /* 选项标签色调与标题一致 */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* 选项靠左对齐 */
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #333; /* 选项框内容色调不变 */
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    text-align: left; /* 选项内容靠左对齐 */
}

/* 鼠标悬停效果 */
.form-control:hover {
    border-color: #96dae6;
}

.form-control:focus {
    outline: none;
    border-color: #46b3c6;
    box-shadow: 0 0 0 3px rgba(70, 179, 198, 0.1);
}

/* 按钮样式 */
.form-buttons {
    margin-top: auto;
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin-left: 0; /* 按钮靠左对齐 */
}

.btn-find-solutions,
.btn-reset-form {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-find-solutions {
    background: linear-gradient(135deg, #46b3c6 0%, #2aafc6 100%);
    color: white;
}

.btn-find-solutions:hover {
    background: linear-gradient(135deg, #2aafc6 0%, #1e8fa5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(70, 179, 198, 0.25);
}

.btn-reset-form {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-reset-form:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(160, 174, 192, 0.25);
}

/* 分隔线 */
.solution-divider {
    flex: 0 0 1px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
    margin: 40px 0;
}

/* 右侧结果区域 - 40% */
.solution-results-section {
    flex: 0 0 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.results-title {
    color: #46b3c6; /* 与标题色调一致 */
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* 占位符状态 */
.results-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.placeholder-content {
    max-width: 500px;
    color: #718096;
    font-size: 18px;
    line-height: 1.8;
}

.placeholder-content p {
    margin-bottom: 15px;
}

.placeholder-content p:last-child {
    margin-bottom: 0;
}

/* 加载指示器 */
.loading-indicator {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #46b3c6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #4a5568;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/* 结果内容 */
.results-content {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 方案容器 */
.solutions-container {
    flex: 1;
    margin-bottom: 40px;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.solution-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #46b3c6;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #46b3c6, #2aafc6);
}

.solution-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.solution-number {
    background: linear-gradient(135deg, #46b3c6, #2aafc6);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.solution-card-title {
    color: #46b3c6;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.solution-card-content {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.solution-features {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.features-title {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

/* 联系信息 */
.contact-section {
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.contact-info {
    text-align: center;
}

.contact-text {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-label {
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.contact-value {
    color: #46b3c6;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #2aafc6;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .solution-content {
        flex-direction: column;
    }
    
    .solution-divider {
        display: none;
    }
    
    .solution-form-section,
    .solution-results-section {
        flex: none;
        width: 100%;
    }
    
    .solution-form-section {
        flex: 0 0 100%;
    }
    
    .solution-results-section {
        flex: 0 0 100%;
    }
    
    .form-container {
        max-width: 600px;
    }
    
    .form-buttons {
        margin-top: 30px;
        max-width: 600px;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
    }
    
    .main-subtitle {
        font-size: 16px;
    }
    
    .solution-form-section,
    .solution-results-section {
        padding: 30px 20px;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .water-treatment-container {
        padding: 20px 15px;
    }
    
    .solution-header {
        margin-bottom: 30px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .btn-find-solutions,
    .btn-reset-form {
        width: 100%;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .solution-card {
        padding: 15px;
    }
    
    .solution-card-title {
        font-size: 16px;
    }
    
    .solution-card-content {
        font-size: 14px;
    }
}