/* ========================================
   city.css — 城市分站样式表（最终优化版）
   ======================================== */

/* ===== 基础 ===== */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}
.city-wrapper {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
.city-wrapper .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.city-wrapper a {
    color: var(--theme-color);
    text-decoration: none;
}
.city-wrapper a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
}

/* ===== 头部 ===== */
.city-header {
    color: #fff;
    padding: 48px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.city-header h1 {
    font-size: 38px;
    margin: 0 0 8px;
    font-weight: bold;
    letter-spacing: 3px;
}
.city-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 16px;
}
.city-header .phone-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 28px;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    transition: background 0.2s;
}
.city-header .phone-btn:active,
.city-header .phone-btn:hover {
    background: rgba(255,255,255,0.22);
}

/* ===== Section 通用 ===== */
.city-section {
    padding: 44px 0;
}
.city-section:nth-child(even) {
    background: #f8f9fa;
}

/* 统一外层容器 */
.section-box,
.about-container,
.advantage-container,
.delivery-container,
.service-container,
.case-container,
.news-container {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px 34px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 板块副标题（新增） */
.section-subtitle {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin: 6px 0 40px;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin: 0 0 12px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 2px;
}

/* ===== 关于我们 ===== */
.about-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
.about-content p {
    margin-bottom: 12px;
}
.about-content p:first-of-type {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color);
}
.about-content strong {
    color: var(--theme-color);
}

/* ===== 核心优势（一行5个） ===== */
.advantage-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.advantage-card {
    flex: 1;
    text-align: center;
    padding: 32px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.advantage-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: color-mix(in srgb, var(--theme-color) 25%, transparent);
}
.advantage-icon {
    font-size: 44px;
    margin-bottom: 12px;
    line-height: 1;
}
.advantage-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}
.advantage-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    max-width: 130px;
    margin: 0 auto;
}

/* ===== 交付流程（时间轴） ===== */
.delivery-list {
    list-style: none;
    padding: 0 0 0 28px;
    margin: 0;
    position: relative;
}
.delivery-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--theme-color);
    border-radius: 2px;
}
.delivery-item {
    position: relative;
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eef1f4;
    transition: all 0.3s;
}
.delivery-item:last-child {
    margin-bottom: 0;
}
.delivery-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    border-color: color-mix(in srgb, var(--theme-color) 30%, transparent);
}
.delivery-num {
    position: absolute;
    left: -28px;
    top: 18px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 6px var(--theme-color);
    flex-shrink: 0;
}
.delivery-icon {
    font-size: 30px;
    margin-bottom: 3px;
}
.delivery-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #222;
}
.delivery-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ===== 服务体系 ===== */
.service-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}
.service-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eef1f4 !important;
}
.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px) !important;
    border-color: var(--theme-color) !important;
}
.service-card img {
    width: 300px !important;
    height: 210px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
    border: none !important;
}
.service-card:nth-child(even) {
    flex-direction: row-reverse !important;
}
.service-card .service-desc {
    flex: 1 !important;
    padding: 24px 28px !important;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.85 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.service-card .service-desc strong {
    color: var(--theme-color) !important;
    font-size: 20px !important;
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
}
.service-card .service-desc p[style*="text-align"] {
    text-align: left !important;
}
.service-card .service-desc p span[style*="font-size"] {
    font-size: 20px !important;
}
.service-card .service-desc p span b,
.service-card .service-desc p span strong {
    color: var(--theme-color) !important;
    font-size: 20px !important;
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* ===== 案例见证 ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eef1f4;
    display: flex;
    flex-direction: column;
}
.case-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.case-card img {
    max-height: 180px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.case-card .case-desc {
    padding: 14px 16px 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-card .case-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--theme-color);
    font-weight: bold;
    text-align: center;
    background: color-mix(in srgb, var(--theme-color) 8%, #fff);
    border-top: 1px solid #eef1f4;
    transition: all 0.3s;
    margin-top: auto;
}
.case-card .case-link:hover {
    background: var(--theme-color);
    color: #fff;
    text-decoration: none;
}

/* ===== 公司动态 ===== */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-item {
    padding: 13px 16px;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s;
    border-radius: 6px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item:hover {
    background: color-mix(in srgb, var(--theme-color) 8%, #fff);
    transform: translateX(3px);
}
.news-cat {
    display: inline-block;
    background: #fff3e0;
    color: #e68900;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}
.news-date {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
    min-width: 82px;
    margin-top: 2px;
    font-weight: 500;
}
.news-content {
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 150px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}
.news-content:hover {
    color: var(--theme-color);
    text-decoration: none;
}

/* ===== FAQ 板块（修正 class 名匹配你的 HTML） ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid #e4eaec;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item:hover {
    border-color: color-mix(in srgb, var(--theme-color) 35%, transparent);
}
.faq-item[open] {
    border-color: var(--theme-color);
    box-shadow: 0 2px 12px color-mix(in srgb, var(--theme-color) 12%, transparent);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* ✅ 这里改成 .faq-q 匹配你的 HTML */
.faq-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--theme-color) 10%, #fff);
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ✅ 这里改成 .faq-q-text */
.faq-q-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 20px;
    color: var(--theme-color);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}
.faq-toggle::before {
    content: '+';
}
.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 22px 18px 80px;
    color: #555;
    font-size: 15px;
    line-height: 1.85;
}
.faq-answer-inner {
    border-top: 1px solid #f2f4f6;
    padding-top: 14px;
    margin-left: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* ✅ 这里改成 .faq-a */
.faq-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--theme-color) 10%, #fff);
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-a-text {
    flex: 1;
    color: #555;
    line-height: 1.85;
}

/* ===== 底部 ===== */
.city-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 42px 0 20px;
    text-align: center;
    font-size: 14px;
}
.city-footer .footer-links {
    margin-bottom: 20px;
    font-size: 14px;
}
.city-footer .footer-links a {
    color: #ccc;
    margin: 0 10px;
    transition: color 0.2s;
}
.city-footer .footer-links a:hover {
    color: #fff;
    text-decoration: none;
}
.city-footer .footer-contact p {
    margin: 5px 0;
    font-size: 13px;
    color: #999;
}
.city-footer .copyright {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #777;
}
.city-footer .copyright a {
    color: #777;
    margin-left: 8px;
}
.city-footer .copyright a:hover {
    color: #ccc;
}

/* ============================================================
   响应式 — 平板 (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .container { padding: 0 18px; }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .advantage-grid { gap: 12px; }
    .advantage-card { padding: 24px 12px; }
    .advantage-icon { font-size: 40px; }
    .advantage-title { font-size: 16px; }
    .advantage-desc { font-size: 13px; }
}

/* ============================================================
   响应式 — 手机 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    html { font-size: 17px; }
    body { font-size: 15px; }
    .container { padding: 0 16px; }

    .city-header { padding: 36px 0 44px; }
    .city-header h1 { font-size: 30px !important; letter-spacing: 2px; }
    .city-header .subtitle { font-size: 15px !important; }
    .city-header .phone-btn { margin-top: 10px; padding: 8px 24px; font-size: 15px; }

    .city-section { padding: 30px 0; }
    .section-box,
    .about-container,
    .advantage-container,
    .delivery-container,
    .service-container,
    .case-container,
    .news-container {
        padding: 22px 16px;
        border-radius: 10px;
    }
    .section-title { font-size: 22px !important; margin-bottom: 8px; padding-bottom: 10px; }
    .section-title::after { width: 46px; height: 3px; }
    .section-subtitle { font-size: 14px; margin-bottom: 30px; }

    /* FAQ 手机端 */
    .faq-item summary { padding: 14px 16px; gap: 10px; }
    .faq-question-text { font-size: 15px; }
    .faq-answer { padding: 0 16px 16px 52px; font-size: 14px; }
    .faq-label-q, .faq-label-a { width: 24px; height: 24px; font-size: 13px; }

    .about-content { font-size: 15px !important; line-height: 1.85; }
    .about-content p { font-size: 15px !important; }
    .about-content p:first-of-type { font-size: 16px !important; }

    .advantage-grid { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .advantage-card { flex: 0 0 calc(33.333% - 10px); padding: 18px 10px; }
    .advantage-card:nth-child(4),
    .advantage-card:nth-child(5) { flex: 0 0 calc(33.333% - 10px); }
    .advantage-icon { font-size: 30px !important; margin-bottom: 6px; }
    .advantage-title { font-size: 15px !important; margin-bottom: 4px; }
    .advantage-desc { font-size: 13px !important; line-height: 1.4; max-width: 120px; }

    .delivery-list { padding-left: 22px; }
    .delivery-item { padding: 12px 14px; margin-bottom: 8px; }
    .delivery-num { width: 22px; height: 22px; line-height: 22px; font-size: 11px; left: -20px; top: 14px; }
    .delivery-icon { font-size: 18px; }
    .delivery-title { font-size: 15px !important; }
    .delivery-desc { font-size: 14px !important; line-height: 1.6; }

    .service-grid { gap: 18px !important; }
    .service-card { flex-direction: column !important; }
    .service-card:nth-child(even) { flex-direction: column !important; }
    .service-card img { width: 100% !important; height: auto !important; aspect-ratio: 16/9 !important; max-height: 220px !important; }
    .service-card .service-desc { padding: 18px 20px !important; font-size: 15px !important; line-height: 1.75 !important; }
    .service-card .service-desc strong { font-size: 16px !important; margin-bottom: 8px !important; }

    .case-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .case-card {
        display: flex !important; flex-direction: column !important; align-items: stretch !important;
        border-radius: 10px !important; overflow: hidden !important; box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        border: 1px solid #eef1f4 !important;
    }
    .case-card img {
        width: 100% !important; height: 150px !important; max-height: 150px !important; min-height: 150px !important;
        aspect-ratio: auto !important; object-fit: cover !important; display: block !important; flex: 0 0 150px !important;
    }
    
    .case-card .case-desc { width: 100% !important; box-sizing: border-box !important; padding: 12px 14px 8px !important; margin: 0 !important; font-size: 14px !important; line-height: 1.7 !important; color: #555 !important; height: auto !important; max-height: none !important; min-height: 0 !important; flex: 1 1 auto !important; display: block !important; overflow: visible !important; text-overflow: clip !important; white-space: normal !important; word-break: normal !important; }
    .case-card .case-link { width: 100% !important; box-sizing: border-box !important; display: block !important; padding: 12px 14px !important; margin: 0 !important; font-size: 13.5px !important; line-height: 20px !important; color: var(--theme-color) !important; font-weight: bold !important; text-align: center !important; background: color-mix(in srgb, var(--theme-color) 8%, #fff) !important; border-top: 1px solid #eef1f4 !important; text-decoration: none !important; flex: 0 0 auto !important; }
    
    .news-item { flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
    .news-cat { font-size: 12px !important; padding: 2px 10px; }
    .news-date { font-size: 13px !important; min-width: 72px; }
    .news-content { flex-basis: 100%; order: 3; font-size: 15px !important; line-height: 1.6; }

    .city-footer { padding: 34px 0 16px; }
    .city-footer .footer-links { font-size: 13px; margin-bottom: 16px; }
    .city-footer .footer-links a { font-size: 13px; margin: 0 6px; }
    .city-footer .footer-contact p { font-size: 13px; }
    .city-footer .copyright { font-size: 12px; }
}

/* ============================================================
   响应式 — 小手机 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    html { font-size: 16px; }
    .container { padding: 0 12px; }

    .city-header { padding: 28px 0 34px; }
    .city-header h1 { font-size: 26px !important; letter-spacing: 1px; }
    .city-header .subtitle { font-size: 14px !important; }
    .city-header .phone-btn { font-size: 13px; padding: 7px 18px; }

    .city-section { padding: 24px 0; }
    .section-box,
    .about-container,
    .advantage-container,
    .delivery-container,
    .service-container,
    .case-container,
    .news-container {
        padding: 18px 14px; border-radius: 8px;
    }
    .section-title { font-size: 20px !important; margin-bottom: 6px; padding-bottom: 8px; }
    .section-title::after { width: 40px; height: 2px; }
    .section-subtitle { font-size: 13px; margin-bottom: 20px; }

    /* FAQ 小手机 */
    .faq-item summary { padding: 12px 14px; gap: 8px; }
    .faq-question-text { font-size: 14px; }
    .faq-answer { padding: 0 14px 14px 46px; font-size: 13.5px; }
    .faq-label-q, .faq-label-a { width: 22px; height: 22px; font-size: 12px; margin-right: 8px; }

    .about-content { font-size: 14px !important; line-height: 1.8; }
    .about-content p { font-size: 14px !important; }
    .about-content p:first-of-type { font-size: 15px !important; }

    .advantage-grid { gap: 8px; }
    .advantage-card { flex: 0 0 calc(33.333% - 8px); padding: 14px 6px; }
    .advantage-card:nth-child(4),
    .advantage-card:nth-child(5) { flex: 0 0 calc(33.333% - 8px); }
    .advantage-icon { font-size: 26px !important; }
    .advantage-title { font-size: 14px !important; }
    .advantage-desc { font-size: 12px !important; max-width: 100px; }

    .delivery-list { padding-left: 20px; }
    .delivery-item { padding: 10px 12px; }
    .delivery-num { width: 20px; height: 20px; line-height: 20px; font-size: 10px; left: -18px; top: 12px; }
    .delivery-title { font-size: 14px !important; }
    .delivery-desc { font-size: 13px !important; }

    .service-card img { max-height: 190px !important; }
    .service-card .service-desc { padding: 14px 16px !important; font-size: 14px !important; }
    .service-card .service-desc strong { font-size: 15px !important; }

    .case-card .case-desc { width: 100% !important; box-sizing: border-box !important; padding: 10px 12px 8px !important; margin: 0 !important; font-size: 13.5px !important; line-height: 1.7 !important; color: #555 !important; height: auto !important; max-height: none !important; min-height: 0 !important; flex: 1 1 auto !important; display: block !important; overflow: visible !important; text-overflow: clip !important; white-space: normal !important; word-break: normal !important; }
     .case-card .case-link { width: 100% !important; box-sizing: border-box !important; display: block !important; padding: 11px 14px !important; margin: 0 !important; font-size: 13.5px !important; line-height: 20px !important; color: var(--theme-color) !important; font-weight: bold !important; text-align: center !important; background: color-mix(in srgb, var(--theme-color) 8%, #fff) !important; border-top: 1px solid #eef1f4 !important; text-decoration: none !important; flex: 0 0 auto !important; }

    .news-item { padding: 10px 12px; }
    .news-content { font-size: 14px !important; }
    .news-date { font-size: 12px !important; min-width: 64px; }

    .city-footer { padding: 28px 0 14px; }
    .city-footer .footer-links a { margin: 0 4px; font-size: 12px; }
    .city-footer .footer-contact p { font-size: 12px; }
    .city-footer .copyright { font-size: 11px; }
}