/* 台中三合一通風門頁面樣式 */

/* 基本重置和全局樣式 */


/* 標題樣式 */

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(118, 75, 162, 0.5);
    }
}

h2 {
    font-size: 1.8rem;
    color: #34495e;
    margin: 2.5rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #667eea;
    position: relative;
    transition: all 0.3s ease;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

/* 分隔線 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 2rem 0;
    animation: hrPulse 2s ease-in-out infinite alternate;
}

@keyframes hrPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* 段落和文字樣式 */

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

strong {
    color: #667eea;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

strong:hover {
    color: #764ba2;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* 列表樣式 */
ol, ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

ol li {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

ol li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: width 0.3s ease;
    z-index: 0;
}

ol li:hover::before {
    width: 100%;
}

ol li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

ol li > * {
    position: relative;
    z-index: 0;
}

/* 安裝流程樣式 */
.installation-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.step::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    opacity: 0;
}

.step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.step:hover::after {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.step h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 0;
}

.step p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 0;
}

/* FAQ 區域樣式 */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: #ffffff;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-item h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.faq-item h3::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item:hover h3::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    background: #fafbff;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* 服務區域列表 */
.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-areas li {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-areas li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-areas li:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.service-areas li:hover::before {
    left: 100%;
}

/* 客戶見證樣式 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 0;
    position: relative;
    z-index: 0;
}
.testimonial-link {
    display: block;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.testimonial-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* CTA 區域樣式 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section > * {
    position: relative;
    z-index: 0;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.cta-section li {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA 按鈕樣式 */
.cta-button {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.call-button, .form-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.call-button {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.form-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.call-button::before, .form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.call-button:hover, .form-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.call-button:hover::before, .form-button:hover::before {
    left: 100%;
}

.form-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 響應式設計 */
@media (max-width: 768px) {
    
    
    h2 {
        font-size: 1.5rem;
    }
    
    .installation-process {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-areas {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        flex-direction: column;
        align-items: center;
    }
    
    .call-button, .form-button {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {

    
    
    .step {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
}

/* 載入動畫 */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 滾動時的動畫效果 */
@keyframes fadeInOnScroll {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



