/* ============================================================
   底比斯工程 · 行业资讯文章页样式
   依赖：public/styles.css（复用 :root tokens、.container、.navbar、.footer）
   作用范围：仅 /news/ 下页面
   ============================================================ */

/* News page body baseline */
body.news-page {
    background: var(--bg-light);
}

/* ------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------ */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: #cbd5e1;
}

.breadcrumb-list a {
    color: var(--text-gray);
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--gold);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--primary);
    font-weight: 500;
}

/* ------------------------------------------------------------
   News Listing Page
   ------------------------------------------------------------ */
.news-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.news-hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-hero h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    margin-bottom: 1rem;
}

.news-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.news-filter {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.news-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.news-filter-chip:hover,
.news-filter-chip.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.news-filter-chip.active {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-cover img {
    transform: scale(1.05);
}

.news-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 50%, rgba(15,23,42,0.35) 100%);
    pointer-events: none;
}

.news-card-cover.cover-permit { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.news-card-cover.cover-design { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); }
.news-card-cover.cover-build { background: linear-gradient(135deg, #78350f 0%, #92400e 100%); }
.news-card-cover.cover-maintenance { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.news-card-title {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-card-excerpt {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.news-card-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.news-card-read {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-card a.news-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card[hidden] { display: none; }

/* ------------------------------------------------------------
   Article Detail Page
   ------------------------------------------------------------ */
.article-wrapper {
    background: var(--white);
    padding: 3rem 0 4rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

.article-main { min-width: 0; }

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-section-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--primary);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.5rem);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta-item i { color: var(--gold); }

.article-body {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body > * + * { margin-top: 1.25rem; }

.article-body h2 {
    font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.65rem);
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--gold);
    line-height: 1.4;
}

.article-body h3 {
    font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem);
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-body p { color: #334155; }

.article-body strong {
    color: var(--primary);
    font-weight: 600;
}

.article-body ul,
.article-body ol { padding-left: 1.5rem; }

.article-body ul li,
.article-body ol li {
    margin: 0.5rem 0;
    color: #334155;
    line-height: 1.75;
}

.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-body blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--gold);
    padding: 1.25rem 1.5rem;
    color: var(--secondary);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-body th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.article-body tr:nth-child(even) { background: var(--bg-light); }

.article-body a {
    color: var(--gold);
    border-bottom: 1px dashed var(--gold);
}

.article-body a:hover { color: var(--gold-light); }

.callout {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08) 0%, rgba(197, 160, 89, 0.03) 100%);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.callout-title i { color: var(--gold); }

.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Article CTA Block
   Note: CTA lives inside .article-body which has typography rules
   targeting p / h2 / a — every CTA selector below is namespaced
   with .article-cta to win specificity (avoid !important).
   ------------------------------------------------------------ */
.article-body .article-cta,
.article-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.article-cta .article-cta-eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.article-cta .article-cta-title {
    font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
    margin-bottom: 0.75rem;
    color: var(--white);
    padding-left: 0;
    border-left: none;
    line-height: 1.4;
}

.article-cta .article-cta-text {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.article-cta .article-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Reset inherited .article-body a (gold + dashed) on CTA buttons */
.article-cta a {
    border-bottom: none;
}

.article-cta a.article-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    background: var(--gold);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
}

.article-cta a.article-cta-phone:hover {
    background: var(--gold-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.4);
}

.article-cta a.article-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
    font-weight: 600;
    transition: var(--transition);
}

.article-cta a.article-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* ------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------ */
.article-aside { position: relative; }

@media (min-width: 1024px) {
    .article-aside {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.aside-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.aside-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    font-weight: 700;
}

.aside-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aside-item a {
    display: block;
    color: var(--text-dark);
    transition: var(--transition);
}

.aside-item a:hover { color: var(--gold); }

.aside-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.aside-item-date {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.aside-contact {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.aside-contact .aside-title {
    color: var(--white);
    border-color: var(--gold);
}

.aside-contact-phone {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gold);
    margin: 0.75rem 0;
    display: block;
    font-weight: 700;
}

.aside-contact-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .news-hero { padding: 3.5rem 0 2.5rem; }

    .news-filter {
        top: 70px;
        padding: 1rem 0;
    }

    .news-filter-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .news-filter-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .news-grid {
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .article-layout {
        padding: 0 1.25rem;
        gap: 2rem;
    }

    .article-cta { padding: 2rem 1.25rem; }

    .article-body h2 { margin-top: 2.25rem; }

    .breadcrumb { margin-top: 70px; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
