/* ==========================================================
   尧图网站开发 · 内页共用组件样式
   供所有内页组合使用：每个页面通过不同组件组合 + 独有内容保持差异化
   ========================================================== */

/* ---------- 内页主视觉 ---------- */
.page-hero {
    padding: 168px 0 72px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #F7F1E6 0%, #F1E5D1 45%, #E9EEF0 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -140px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 183, 197, 0.35) 0%, transparent 65%);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 121, 76, 0.22) 0%, transparent 62%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    color: var(--clay);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.page-hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--brown-deep);
}

.page-hero h1 em {
    font-style: normal;
    color: var(--clay);
    position: relative;
}

.page-hero h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M2 8 Q 20 2 40 7 T 80 6 T 118 7' fill='none' stroke='%2396B7C5' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    opacity: 0.8;
    z-index: -1;
}

.page-hero-desc {
    font-size: 17px;
    color: var(--text);
    line-height: 2;
    max-width: 640px;
    margin-bottom: 32px;
}

.page-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-hero-figure {
    position: relative;
}

.page-hero-figure .arch-frame {
    width: 100%;
    max-width: 420px;
    height: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 8px solid var(--paper);
    background: var(--paper);
}

.page-hero-float {
    position: absolute;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 18px;
    border: 1px solid var(--line);
    z-index: 3;
}

.page-hero-float.f1 {
    top: 40px;
    left: -16px;
}

.page-hero-float.f2 {
    bottom: 44px;
    right: -12px;
}

.page-hero-float .fh-num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--clay);
    line-height: 1.1;
}

.page-hero-float .fh-label {
    font-size: 12.5px;
    color: var(--text-light);
}

.page-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px dashed var(--line);
}

.ph-stat .ph-num {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--brown-deep);
}

.ph-stat .ph-num span {
    color: var(--clay);
}

.ph-stat .ph-label {
    font-size: 13px;
    color: var(--text-light);
}

/* 居中主视觉 */
.page-hero-center {
    text-align: center;
    padding: 160px 0 90px;
}

.page-hero-center h1 {
    font-size: 52px;
}

.page-hero-center .page-hero-desc {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .page-hero {
        padding: 140px 0 56px;
    }
    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .page-hero-figure .arch-frame {
        height: 380px;
    }
    .page-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-hero h1 {
        font-size: 36px;
    }
    .page-hero-center h1 {
        font-size: 38px;
    }
}

/* ---------- 编号特征（01/02/03 编辑风） ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.feature-row.reverse .feature-visual {
    order: 2;
}

.feature-index {
    font-family: var(--serif);
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brown), var(--clay));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.feature-visual {
    position: relative;
}

.feature-visual img {
    width: 100%;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 8px solid var(--paper);
}

.feature-visual::after {
    content: '';
    position: absolute;
    inset: -16px -16px auto auto;
    width: 60%;
    height: 60%;
    border: 2px dashed rgba(169, 130, 92, 0.35);
    border-radius: 22px;
    z-index: -1;
}

.feature-body h3 {
    font-size: 26px;
    margin-bottom: 14px;
}

.feature-body p {
    color: var(--text);
    line-height: 2;
    margin-bottom: 14px;
}

.feature-body .check-list {
    margin-top: 16px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 15px;
}

.check-list li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

@media (max-width: 992px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .feature-row.reverse .feature-visual {
        order: 0;
    }
}

/* ---------- 特性卡片 ---------- */
.mini-card {
    background: var(--paper);
    border: 1px solid rgba(228, 216, 196, 0.7);
    border-radius: 18px;
    padding: 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clay), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mini-card:hover::before {
    transform: scaleX(1);
}

.mini-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.mini-card .mc-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cream), var(--sand));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.mini-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.mini-card p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.9;
}

.mini-card .mc-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clay);
}

.mini-card .mc-link:hover {
    color: var(--brown-deep);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .card-grid, .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid, .card-grid-4, .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- 步骤 ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--paper);
    border-radius: 18px;
    padding: 30px 22px;
    border: 1px solid rgba(228, 216, 196, 0.7);
    text-align: center;
    transition: all 0.35s ease;
}

.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 46px;
    font-weight: 800;
    color: rgba(169, 130, 92, 0.16);
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.step-card .step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brown), var(--clay));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.8;
}

.steps-4 {
    grid-template-columns: repeat(4, 1fr);
}

.steps-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 992px) {
    .steps, .steps-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps, .steps-6, .steps-4 {
        grid-template-columns: 1fr;
    }
}

/* ---------- 竖向时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--clay), var(--blue), var(--brown));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 34px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--clay);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .tl-tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--clay);
    background: rgba(200, 121, 76, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.timeline-item h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.9;
    max-width: 720px;
}

/* ---------- 数据统计 ---------- */
.stats-band {
    background: linear-gradient(135deg, var(--brown-deep) 0%, #8A6A4C 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.stat-item .stat-num span {
    color: var(--sand);
}

.stat-item .stat-label {
    margin-top: 8px;
    font-size: 14.5px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--paper);
    border: 1px solid rgba(228, 216, 196, 0.7);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item .faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--brown-deep);
}

.faq-item .faq-q .faq-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brown), var(--clay));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.3s ease;
    font-family: var(--sans);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item .faq-a {
    padding: 0 26px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 800px;
    padding: 0 26px 22px 66px;
}

.faq-item .faq-a p {
    font-size: 14.5px;
    color: var(--text);
    line-height: 2;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    padding: 74px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.cta-band::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: 8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 46px solid rgba(255, 255, 255, 0.07);
}

.cta-band::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 6%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, 0.06);
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 16.5px;
    opacity: 0.92;
    margin-bottom: 30px;
}

.cta-inner .btn-light {
    margin: 0 8px;
}

/* 陶土色 CTA */
.cta-band.clay {
    background: linear-gradient(135deg, var(--clay) 0%, #A85E38 100%);
}

/* ---------- 标签云 ---------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-cloud a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text);
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: linear-gradient(135deg, var(--brown), var(--clay));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ---------- 图文列表 ---------- */
.article-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: var(--paper);
    border: 1px solid rgba(228, 216, 196, 0.7);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
    transition: all 0.35s ease;
    align-items: center;
}

.article-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.article-list-item img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.article-list-item h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.article-list-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.article-list-item .alm-meta {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--clay);
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .article-list-item {
        grid-template-columns: 1fr;
    }
    .article-list-item img {
        width: 100%;
        height: 200px;
    }
}

/* ---------- 表格 ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px -16px rgba(110, 82, 56, 0.2);
    font-size: 14.5px;
}

.data-table thead th {
    background: linear-gradient(135deg, var(--brown-deep), var(--brown));
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 1px;
}

.data-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.data-table tbody tr:nth-child(even) {
    background: var(--cream);
}

.data-table tbody tr:hover {
    background: var(--sand);
}

/* ---------- 客户证言 ---------- */
.quote-card {
    background: var(--paper);
    border: 1px solid rgba(228, 216, 196, 0.7);
    border-radius: 20px;
    padding: 34px;
    position: relative;
}

.quote-card::before {
    content: '“';
    font-family: var(--serif);
    font-size: 90px;
    line-height: 1;
    color: rgba(200, 121, 76, 0.18);
    position: absolute;
    top: 10px;
    left: 24px;
}

.quote-card blockquote {
    font-size: 15.5px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 20px;
    padding-top: 26px;
}

.quote-card .qc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quote-card .qc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brown), var(--clay));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
}

.quote-card .qc-name {
    font-weight: 700;
    color: var(--brown-deep);
    font-size: 15px;
}

.quote-card .qc-role {
    font-size: 13px;
    color: var(--text-light);
}

/* ---------- 双栏内容 ---------- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 图片墙 ---------- */
.image-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.image-wall .iw-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 240px;
}

.image-wall .iw-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-wall .iw-item:hover img {
    transform: scale(1.08);
}

.image-wall .iw-item.tall {
    height: 340px;
}

.image-wall .iw-item .iw-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 18px 14px;
    background: linear-gradient(transparent, rgba(58, 51, 43, 0.75));
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .image-wall {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .image-wall {
        grid-template-columns: 1fr;
    }
}

/* ---------- 内页窄版正文 ---------- */
.article-body {
    background: var(--paper);
    border-radius: 20px;
    border: 1px solid rgba(228, 216, 196, 0.7);
    padding: 48px;
    max-width: 860px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 26px;
    margin: 34px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--clay);
}

.article-body h3 {
    font-size: 20px;
    margin: 26px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
    line-height: 2;
}

.article-body ul {
    list-style: none;
    margin: 12px 0 20px;
}

.article-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.9;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--clay), var(--blue));
    transform: rotate(45deg);
}

.article-body .article-cover {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 24px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--line);
    padding: 12px 16px;
    font-size: 14.5px;
}

.article-body table th {
    background: var(--cream);
    color: var(--brown-deep);
    font-weight: 600;
}

.callout {
    background: var(--cream);
    border-left: 4px solid var(--blue);
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 22px 0;
    font-size: 15px;
    line-height: 1.9;
}

.callout strong {
    color: var(--brown-deep);
}

@media (max-width: 768px) {
    .article-body {
        padding: 28px 22px;
    }
}

/* ---------- 侧边栏布局 ---------- */
.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.side-card {
    background: var(--paper);
    border: 1px solid rgba(228, 216, 196, 0.7);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 22px;
}

.side-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.side-card ul li {
    margin-bottom: 10px;
}

.side-card ul li a {
    font-size: 14px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.side-card ul li a:hover {
    color: var(--clay);
}

@media (max-width: 992px) {
    .with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}
