/* ========================================================================
   上饶速修空调服务中心 - 全站公共样式
   主色：活力橙 #ff6b00 | 深空灰 #2d3436 | 浅灰背景 #f1f2f6
   ======================================================================== */

/* --- 全局变量与重置 --- */
:root {
    --primary-color: #ff6b00;
    --primary-hover: #e65a00;
    --secondary-color: #2d3436;
    --accent-color: #f1f2f6;
    --text-main: #2d3436;
    --text-sub: #636e72;
    --white: #ffffff;
    --success: #00b894;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--accent-color);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 顶部通知栏 --- */
.top-notification {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
}
.top-notification i { margin-right: 5px; color: var(--primary-color); }

/* --- 头部导航 --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--primary-color); }
.logo i { font-size: 26px; color: var(--primary-color); }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links > a,
.nav-dropdown-trigger {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-dropdown:hover > .nav-dropdown-trigger, .nav-dropdown.open > .nav-dropdown-trigger { color: var(--primary-color); }
.nav-links > a::after,
.nav-dropdown > .nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links > a:hover::after, .nav-links > a.active::after,
.nav-dropdown:hover > .nav-dropdown-trigger::after, .nav-dropdown.open > .nav-dropdown-trigger::after { width: 100%; }

/* 服务项目下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1001;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    background: var(--white);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.03);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-dropdown-menu a i { color: var(--primary-color); width: 18px; text-align: center; font-size: 14px; }
.nav-dropdown-menu a:hover { background: #fff6ef; color: var(--primary-color); }

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}
.cta-button.outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    box-shadow: none;
}
.cta-button.outline:hover { background: rgba(255,255,255,0.1); transform: none; }

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* --- Hero 区域 --- */
.hero-section {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,0,0.18), rgba(0,0,0,0));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
    display: inline-block;
    background-color: rgba(255, 107, 0, 0.2);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 0, 0.5);
}
.hero-title { font-size: 42px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero-title span { color: var(--primary-color); }
.hero-desc { font-size: 18px; color: #dfe6e9; margin-bottom: 30px; line-height: 1.8; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item h3 { font-size: 28px; color: var(--primary-color); font-weight: 800; }
.stat-item p { font-size: 13px; color: #b2bec3; }

/* --- 通用 section --- */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-header p { color: var(--text-sub); }
.bg-white { background-color: var(--white); }
.bg-accent { background-color: var(--accent-color); }
.bg-dark { background-color: var(--secondary-color); color: var(--white); }

/* --- 服务卡片 --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.icon-box {
    width: 60px; height: 60px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
}
.service-card:hover .icon-box { background-color: var(--primary-color); color: var(--white); }
.service-card h1 { font-size: 20px; margin: 0 0 10px; color: var(--secondary-color); font-weight: bold; }
.service-card p { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }
.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.card-link:hover { gap: 10px; }

/* --- 优势列表 --- */
.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.feature-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-md); width: 100%; }
.feature-list { display: grid; gap: 20px; }
.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-item:hover { transform: translateX(10px); border-left: 4px solid var(--primary-color); }
.f-icon { color: var(--success); font-size: 20px; margin-top: 3px; }
.f-text h4 { font-size: 16px; margin-bottom: 5px; color: var(--secondary-color); }
.f-text p { font-size: 13px; color: var(--text-sub); }

/* --- 服务流程 --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}
.process-step {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.process-step .step-num {
    width: 40px; height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    margin: 0 auto 15px;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; color: var(--secondary-color); }
.process-step p { font-size: 13px; color: var(--text-sub); }

/* --- 服务区域标签 --- */
.area-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.area-tag {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    color: var(--white);
}
.area-tag:hover { background: var(--primary-color); border-color: var(--primary-color); }

/* --- FAQ --- */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; margin-bottom: 10px; }
.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
}
.faq-question i { transition: var(--transition); color: var(--primary-color); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- 面包屑 --- */
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-sub);
    box-shadow: var(--shadow-sm);
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .sep { margin: 0 8px; color: #b2bec3; }
.breadcrumb .current { color: var(--primary-color); }

/* --- 页面 Banner --- */
.page-banner {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 { font-size: 34px; margin-bottom: 15px; font-weight: 800; }
.page-banner p { color: #dfe6e9; max-width: 700px; margin: 0 auto; }

/* --- 文章内容 --- */
.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
}
.article-content h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 18px; color: var(--secondary-color); margin: 20px 0 10px; }
.article-content p { margin-bottom: 15px; color: var(--text-main); }
.article-content ul { padding-left: 20px; margin-bottom: 15px; list-style: disc; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--secondary-color); }
.article-content a { color: var(--primary-color); }
.article-content a:hover { text-decoration: underline; }

/* --- 价格表 --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.price-table th, .price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.price-table th { background: var(--secondary-color); color: var(--white); font-weight: 600; }
.price-table tr:hover td { background: #fafafa; }
.price-table .price { color: var(--primary-color); font-weight: 700; }
.price-group-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 25px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

/* --- 案例卡片 --- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.case-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-card .case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #dfe6e9;
}
.case-card .case-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b00, #e65a00);
    color: #fff;
    font-size: 42px;
}
.case-card .case-body { padding: 20px; }
.case-card .case-tag {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}
.case-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--secondary-color); }
.case-card p { font-size: 13px; color: var(--text-sub); }

/* --- CTA 区 --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.cta-section h2 { font-size: 28px; margin-bottom: 15px; }
.cta-section p { margin-bottom: 25px; font-size: 16px; }
.cta-section .cta-button {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 14px 36px;
    font-size: 16px;
}
.cta-section .cta-button:hover { background: #fafafa; transform: translateY(-2px); }

/* --- 区域卡片 --- */
.area-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.area-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--secondary-color); }
.area-card h3 i { color: var(--primary-color); margin-right: 8px; }
.area-card p { font-size: 13px; color: var(--text-sub); }

/* --- 联系卡片 --- */
.contact-block {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}
.contact-block i { font-size: 24px; color: var(--primary-color); width: 30px; text-align: center; }
.contact-block .label { font-size: 13px; color: var(--text-sub); }
.contact-block .value { font-size: 17px; font-weight: 600; color: var(--secondary-color); }
.contact-block .value a { color: var(--primary-color); }

/* --- 底部 --- */
footer {
    background-color: #1e272e;
    color: #d2dae2;
    padding: 60px 0 20px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background-color: var(--primary-color);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.contact-row i { color: var(--primary-color); width: 20px; }
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #808e9b;
}

/* --- 移动端悬浮 --- */
.mobile-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: var(--white);
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}
.m-btn { flex: 1; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; }
.m-call { background-color: var(--primary-color); color: var(--white); }
.m-wx { background-color: #07c160; color: var(--white); }

/* --- 响应式 --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .feature-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-desktop-cta { display: none; }
    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
    }
    /* 移动端：下拉菜单改为静态展开 */
    .nav-dropdown { width: 100%; }
    .nav-dropdown > .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }
    .nav-dropdown > .nav-dropdown-trigger::after { display: none; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        background: #fafafa;
        border-radius: 8px;
        padding: 5px 0;
        margin-top: 5px;
        display: none;
        min-width: unset;
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .mobile-toggle { display: block; }
    .nav-container { height: 60px; }
    section { padding: 50px 0; }
    .hero-section { padding: 50px 0; text-align: center; }
    .hero-section::before { display: none; }
    .hero-content { margin: 0 auto; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; gap: 20px; }
    .stat-item h3 { font-size: 22px; }
    .section-header h2 { font-size: 24px; }
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 24px; }
    .article-content { padding: 20px; }
    .article-content h2 { font-size: 19px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .mobile-bar { display: flex; }
    body { padding-bottom: 50px; }
    .price-table { display: block; overflow-x: auto; white-space: nowrap; }
}
