/* RTSFZH Ads — Google Ads workspace theme */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --anchor-offset: 66px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

html {
    scroll-padding-top: var(--anchor-offset);
}

section[id] {
    scroll-margin-top: var(--anchor-offset);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Top bar */
.top-bar {
    background: var(--gray-900);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav {
    display: flex;
    gap: 28px;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.top-nav a:hover {
    color: var(--white);
}

.btn-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-top:hover {
    background: var(--primary-dark);
}

/* Main header */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo-xmp {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-g   { color: #4285F4; }
.logo-o1  { color: #EA4335; }
.logo-o2  { color: #FBBC04; }
.logo-g2  { color: #4285F4; }
.logo-l   { color: #34A853; }
.logo-e   { color: #EA4335; }
.logo-ads { color: var(--gray-900); margin-left: 4px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header:hover {
    background: var(--primary-dark);
}

/* Hero */
.hero-xmp {
    background: linear-gradient(180deg, #eff6ff 0%, var(--white) 70%);
    padding: 80px 24px 100px;
    text-align: center;
}

.hero-tag {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-desc {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.75;
}

.hero-cta .btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.hero-cta .btn:hover {
    background: var(--primary-dark);
}

.hero-visual {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

/* Sections */
.section {
    padding: 72px 24px;
}

.sec-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 16px;
}

.sec-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.sec-more {
    text-align: center;
    margin-top: 32px;
}

.sec-more a {
    color: var(--primary);
    font-weight: 500;
}

.sec-more a:hover {
    text-decoration: underline;
}

/* Platform grid */
.platform-section {
    background: var(--gray-50);
}

.platform-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.platform-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    object-fit: cover;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.platform-card-img {
    height: 140px;
    overflow: hidden;
}

.platform-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    padding: 20px 24px 0;
}

.platform-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    padding: 0 24px 24px;
}

/* Core features grid */
.features-xmp {
    background: var(--white);
}

.features-showcase {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.features-showcase img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feat-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
}

.feat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feat-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Efficiency stats */
.efficiency-section {
    background: var(--gray-50);
}

.efficiency-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.efficiency-cta {
    text-align: center;
}

.efficiency-cta .btn {
    padding: 14px 32px;
}

/* 数据统计图 Charts section */
.charts-section {
    background: var(--white);
}

.charts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
}

.chart-card-wide {
    grid-column: 1 / -1;
}

.chart-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 24px;
}

/* Horizontal bar chart */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.chart-bar-value {
    font-weight: 600;
    color: var(--primary);
}

.chart-bar-track {
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    border-radius: 5px;
}

.chart-bar-fill-accent {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* Column chart */
.chart-columns {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 160px;
    margin-bottom: 12px;
}

.chart-col {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, var(--primary), #3b82f6);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.chart-col-high {
    background: linear-gradient(180deg, #059669, #10b981);
}

.chart-col-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.chart-col-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

/* Trend bar chart */
.chart-trend {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    margin-bottom: 12px;
}

.chart-trend-bar {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, var(--primary), #60a5fa);
    border-radius: 4px 4px 0 0;
    opacity: 0.9;
}

.chart-trend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* 集成/合作伙伴 Integrations */
.integrations-section {
    background: var(--white);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.int-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.int-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.int-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* 行业/场景 Industries */
.industries-section {
    background: var(--gray-50);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.industry-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* 定价/方案 Pricing */
.pricing-section {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    margin-top: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.btn-outline-price {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    text-decoration: none;
}

.btn-outline-price:hover {
    background: var(--primary);
    color: var(--white);
}

/* 新闻/更新 Updates */
.updates-section {
    background: var(--gray-50);
}

.updates-list {
    max-width: 720px;
    margin: 0 auto;
}

.update-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.update-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.update-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 8px 0 8px;
}

.update-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* 底部 CTA 条 */
.cta-strip {
    background: var(--primary);
    color: var(--white);
    padding: 32px 24px;
}

.cta-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-strip-text {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}

.cta-strip .btn {
    background: var(--white);
    color: var(--primary);
}

.cta-strip .btn:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* 使用流程 How it works */
.how-section {
    background: var(--gray-50);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* 常见问题 FAQ */
.faq-section {
    background: var(--white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:hover {
    background: var(--gray-50);
}

.faq-q {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Cases / testimonials */
.cases-section {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    padding: 0 0 28px;
    border: 1px solid var(--gray-200);
}

.case-card-img {
    height: 160px;
    overflow: hidden;
}

.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card .case-quote {
    padding: 24px 24px 0;
}

.case-card .case-stats,
.case-card .case-link {
    padding: 0 24px;
}

.case-quote {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.case-stats strong {
    color: var(--primary);
}

.case-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

.case-link:hover {
    text-decoration: underline;
}

/* Why section */
.why-section {
    background: var(--gray-50);
}

.why-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.why-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.why-block.reverse {
    direction: rtl;
}

.why-block.reverse > * {
    direction: ltr;
}

.why-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.why-img img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.why-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.why-text p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.75;
}

/* Compliance */
.compliance-section {
    background: var(--gray-50);
}

.compliance-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.comp-item {
    background: var(--white);
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* CTA section */
.cta-section {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-desc {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Privacy */
.privacy-section {
    padding: 48px 24px 72px;
    background: var(--white);
}

.privacy-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-wrapper h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    text-align: center;
}

.privacy-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 24px;
    margin-bottom: 8px;
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-content a {
    color: var(--primary);
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Generic policy pages */
.policy-section {
    padding: 48px 24px 72px;
    background: var(--white);
}

.policy-section-alt {
    background: var(--gray-50);
}

.policy-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.policy-wrapper h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    text-align: center;
}

.policy-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 24px;
    margin-bottom: 8px;
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.policy-content a {
    color: var(--primary);
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 48px 24px 32px;
    border-top: 1px solid var(--gray-200);
}

.footer-nav-block {
    margin-bottom: 32px;
}

.footer-nav-block h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--gray-500);
}

.footer-nav-block a {
    display: block;
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-nav-block a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--gray-700);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* New footer layout (enterprise) */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 26px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}

.footer-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 38ch;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: #475569;
}

.footer-label {
    display: inline-block;
    min-width: 44px;
    font-weight: 600;
    color: #64748b;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #475569;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom-slim {
    padding-top: 18px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-bottom-note {
    margin-top: 10px;
    max-width: 90ch;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-desc {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .efficiency-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .charts-layout {
        grid-template-columns: 1fr;
    }
    .chart-card-wide {
        grid-column: 1;
    }
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .why-block {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .why-block.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-xmp {
        padding: 48px 16px 32px;
    }
    .hero-visual {
        padding: 0 16px 32px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .platform-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .efficiency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-row {
        grid-template-columns: 1fr;
    }
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
    }
    .compliance-grid {
        flex-direction: column;
    }
}

/* —— 公司内部门户（portal-internal）—— */
.portal-internal {
    background: var(--portal-bg, #f1f5f9);
}

.internal-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fef3c7;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-bottom: 1px solid #334155;
    text-align: center;
}

.internal-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.portal-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.portal-brand .logo-xmp {
    color: #0f172a;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.badge-internal {
    display: none;
}

.portal-hero {
    background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 45%, #f1f5f9 100%);
    padding: 56px 24px 64px;
    border-bottom: 1px solid #e2e8f0;
}

.portal-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-hero-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.portal-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.portal-hero-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 36em;
}

.portal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.portal-hero-panel {
    display: flex;
    justify-content: center;
}

.mock-window {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.mock-window-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mock-window-body {
    padding: 20px 16px 24px;
}

.mock-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mock-line-short {
    width: 55%;
}

.mock-grid-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.mock-grid-mini span {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.portal-section {
    padding: 56px 24px;
}

.portal-section.alt-bg {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.sec-title-left {
    text-align: left;
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}

.sec-intro-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: 720px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-tile:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.quick-tile-icon {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1;
}

.quick-tile-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.quick-tile-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 22px;
}

.portal-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.portal-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

.portal-list-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portal-list-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 20px;
}

.portal-list-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.portal-list-block p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
}

.compliance-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.compliance-doc-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s;
}

.compliance-doc-card:hover {
    border-color: var(--primary);
}

.compliance-doc-title {
    font-weight: 600;
    color: #0f172a;
}

.compliance-doc-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.policy-inline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.policy-inline-alt {
    background: #fff;
}

.policy-inline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.policy-inline p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.portal-cta.cta-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid #cbd5e1;
}

.portal-footer .footer-nav-block h4 {
    color: #64748b;
}

.portal-footer .footer-bottom {
    border-top-color: #cbd5e1;
}

@media (max-width: 1024px) {
    .portal-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .portal-hero-panel {
        order: -1;
    }
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-list-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portal-hero {
        padding: 40px 16px 48px;
    }
    .portal-hero-title {
        font-size: 1.65rem;
    }
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .portal-card-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Enhanced portal: scroll progress, mobile nav, tabs, accordion —— */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    z-index: 1000;
    pointer-events: none;
    transition: width 0.05s linear;
}

.back-to-top {
    position: fixed;
    right: 200px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: skyblue;
    color: #000000;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
}

.portal-header.js-enhanced .header-inner {
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #0f172a;
    flex-shrink: 0;
}

.nav-toggle-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.nav-toggle-lines span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.portal-header.is-nav-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.portal-header.is-nav-open .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
}

.portal-header.is-nav-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu a.nav-active {
    color: #2563eb;
}

.portal-header .nav-menu {
    gap: 6px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    scrollbar-width: none;
}

.portal-header .nav-menu::-webkit-scrollbar {
    display: none;
}

.portal-header .nav-menu a {
    position: relative;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #475569;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.portal-header .nav-menu a:hover {
    color: #1e293b;
    background: #eef2ff;
}

.portal-header .nav-menu a.nav-active {
    color: #1d4ed8;
    background: #e0e7ff;
}

.portal-header .btn-header {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.18);
}

.portal-header.is-compact {
    border-bottom-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.portal-header.is-compact .header-inner {
    min-height: 58px;
}

@media (max-width: 960px) {
    .portal-header.js-enhanced .nav-toggle {
        display: flex;
        margin-left: auto;
    }
    .portal-header.js-enhanced .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        order: 5;
        padding: 12px 0 8px;
        margin-top: 8px;
        border-top: 1px solid #e2e8f0;
        gap: 0;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }
    .portal-header.js-enhanced .nav-menu a {
        padding: 11px 12px;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
    }
    .portal-header.js-enhanced.is-nav-open .nav-menu {
        display: flex;
    }
    .portal-header.js-enhanced .btn-header {
        order: 4;
        margin-left: 12px;
    }
}

.quick-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.shortcut-filter {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: #fff;
}

.shortcut-filter:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    background: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.tab-group {
    margin-top: 24px;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.tab-list [role='tab'] {
    padding: 10px 16px;
    border: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-list [role='tab'][aria-selected='true'] {
    color: #2563eb;
    background: #eff6ff;
    border-bottom-color: #2563eb;
}

.tab-list [role='tab']:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

[role='tabpanel'] {
    padding: 8px 0 0;
}

[role='tabpanel'] h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #0f172a;
}

[role='tabpanel'] p,
[role='tabpanel'] ul {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

[role='tabpanel'] ul {
    margin: 0 0 12px 1.1em;
}

.accordion {
    max-width: 720px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.accordion-item + .accordion-item {
    border-top: 1px solid #e2e8f0;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.accordion-trigger:hover {
    background: #f8fafc;
}

.accordion-trigger::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #94a3b8;
    flex-shrink: 0;
}

.accordion-trigger[aria-expanded='true']::after {
    content: '−';
    color: #2563eb;
}

.accordion-panel {
    padding: 0 18px 16px;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

.accordion-panel[hidden] {
    display: none;
}

.doc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.doc-hub-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-hub-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.doc-hub-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.doc-hub-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.doc-hub-card .doc-hub-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
}

.doc-hub-card .doc-hub-link:hover {
    text-decoration: underline;
}

.stat-value.js-count {
    font-variant-numeric: tabular-nums;
}

/* Subpages */
.subpage-main {
    padding: 40px 24px 64px;
    min-height: 50vh;
}

.subpage-prose {
    max-width: 720px;
    margin: 0 auto;
}

.subpage-prose h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.subpage-prose .subpage-lead {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.65;
}

.subpage-prose h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin: 28px 0 10px;
}

.subpage-prose p,
.subpage-prose li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

.subpage-prose ul,
.subpage-prose ol {
    margin: 0 0 12px 1.2em;
}

.subpage-prose code {
    font-size: 0.88em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.subpage-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 16px 0;
}

.subpage-prose th,
.subpage-prose td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.subpage-prose th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.subpage-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.subpage-nav a {
    color: #2563eb;
    font-weight: 500;
}

.subpage-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .portal-internal .portal-header.js-enhanced .nav-menu {
        display: none;
    }
    .portal-header.js-enhanced.is-nav-open .nav-menu {
        display: flex;
    }
    .portal-internal .portal-header:not(.js-enhanced) .nav-menu {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px 12px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }
}
