/* ============================================================
   外贸ERP 共享样式（erp-css）
   被 design-studio.php / quotation-workbench.php 等页面引用
   通过 CSS 变量自定义页面色系
   ============================================================ */

/* ===== CSS 变量（默认蓝色主题） ===== */
:root {
  --erp-primary: #3370FF;
  --erp-primary-light: #F0F4FF;
  --erp-primary-bg: rgba(51,112,255,0.10);
  --erp-primary-text: #3370FF;
  --erp-primary-hover: #4E83FD;
  --erp-primary-active: #245BDB;
  --erp-accent: #d4a040;
  --erp-accent-soft: #FFFBEB;
  --erp-hero-from: #1F2329;
  --erp-hero-to: #2C3038;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.page-content { padding-top: 0; }

/* ===== Utility ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
.section-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 16px;
    color: #1F2329;
}
.section-subtitle {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    color: #646A73;
    max-width: 640px;
    margin: 0 auto 64px;
}

/* ===== Breadcrumb ===== */
.erp-crumb {
    max-width: 1280px; margin: 0 auto; padding: 16px 30px 0;
}
.erp-crumb a { color: #646A73; font-size: 0.8125rem; text-decoration: none; }
.erp-crumb .sep { margin: 0 6px; color: #CBD5E1; }
.erp-crumb .current { color: #1D2129; font-size: 0.8125rem; font-weight: 600; }

/* ===== Hero ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--erp-hero-from) 0%, var(--erp-hero-to) 100%);
    overflow: hidden;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 64px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
/* Banner 标签组：产品名称（描边）+ 功能模块（实底） */
.hero-text .badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-text .badge-group .badge { margin-bottom: 0; font-size: 13px; padding: 5px 14px; }
.hero-text .badge-group .badge-prod {
    background: transparent;
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.35);
}
.hero-text .badge-group .badge-mod {
    background: rgba(255,255,255,0.16);
    color: #FFFFFF;
    font-weight: 600;
}
.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.16;
    color: #FFFFFF;
    margin-bottom: 24px;
}
.hero-text h1 span { color: #F5C97B; }
.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-text .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-visual { flex: 1; min-width: 0; position: relative; }
.hero-visual .mockup {
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #E8EAED;
}
.hero-visual .mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #F8F9FA;
    border-bottom: 1px solid #E8EAED;
}
.hero-visual .mockup-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-visual .mockup-header .dot:nth-child(1) { background: #FF5F57; }
.hero-visual .mockup-header .dot:nth-child(2) { background: #FFBD2E; }
.hero-visual .mockup-header .dot:nth-child(3) { background: #28C840; }
.hero-visual .mockup-header span { margin-left: 12px; font-size: 13px; color: #999; }
.hero-visual .mockup-body { padding: 24px; }

/* Hero mockup 统计卡片 */
.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mockup-stat {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #EEF0F2;
    text-align: center;
}
.mockup-stat__num {
    font-size: 22px;
    font-weight: 700;
    color: #1F2329;
}
.mockup-stat__num.green { color: #10B981; }
.mockup-stat__num.amber { color: #F59E0B; }
.mockup-stat__num.blue { color: #8B5CF6; }
.mockup-stat__label {
    font-size: 12px;
    color: #646A73;
    margin-top: 4px;
}
.mockup-stat__bar {
    height: 6px;
    border-radius: 3px;
    background: #E0E3E7;
    margin-top: 8px;
    overflow: hidden;
}
.mockup-stat__bar-fill { height: 100%; border-radius: 3px; }
.mockup-stat__bar-fill.green { background: #10B981; }
.mockup-stat__bar-fill.amber { background: #F59E0B; }
.mockup-stat__bar-fill.blue { background: #3B82F6; }

/* Hero mockup 任务卡片 */
.mockup-body .mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mockup-body .mockup-card {
    background: #F8F9FA;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #EEF0F2;
}
.mockup-body .mockup-card .bar {
    height: 8px;
    border-radius: 4px;
    background: #E0E3E7;
    margin-bottom: 10px;
}
.mockup-body .mockup-card .bar:last-child { margin-bottom: 0; }
.mockup-body .mockup-card .bar.fill-60 { width: 60%; }
.mockup-body .mockup-card .bar.fill-80 { width: 80%; }
.mockup-body .mockup-card .bar.fill-40 { width: 40%; }
.mockup-body .mockup-card .bar.fill-70 { width: 70%; }
.mockup-body .mockup-card .bar.fill-50 { width: 50%; }
.mockup-body .mockup-card .bar.fill-90 { width: 90%; }
.mockup-body .mockup-card .bar.blue { background: #3370FF; }
.mockup-body .mockup-card .bar.green { background: #34C759; }
.mockup-body .mockup-card .bar.orange { background: #FF9500; }
.mockup-body .mockup-card .bar.purple { background: #AF52DE; }
.mockup-body .mockup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mockup-body .mockup-row .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--erp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.mockup-body .mockup-row .avatar.green { background: #34C759; }
.mockup-body .mockup-row .avatar.orange { background: #FF9500; }

/* ===== Detail Sections ===== */
.detail-section { padding: 100px 0; }
.detail-section .container {
    display: flex;
    align-items: center;
    gap: 80px;
}
.detail-section.reverse .container { flex-direction: row-reverse; }
.detail-section .detail-text { flex: 1; min-width: 0; }
.detail-section .detail-text h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #1F2329;
    margin-bottom: 16px;
}
.detail-section .detail-text .goal-box {
    font-size: 15px;
    line-height: 1.7;
    color: #51565D;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--erp-accent-soft);
    border-radius: 12px;
    border-left: 4px solid var(--erp-accent);
}
.detail-section .detail-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #646A73;
    margin-bottom: 24px;
}
.detail-section .detail-text ul { display: flex; flex-direction: column; gap: 12px; }
.detail-section .detail-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #51565D;
}
.detail-section .detail-text ul li strong { white-space: nowrap; font-weight: 600; color: #1D2129; }
.detail-section .detail-text ul li svg {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 2px;
}
.detail-section .detail-visual { flex: 1; min-width: 0; }
.detail-section .detail-visual .mockup {
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border: 1px solid #EEF0F2;
    overflow: hidden;
}
.detail-section .detail-visual .mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #F8F9FA;
    border-bottom: 1px solid #E8EAED;
}
.detail-section .detail-visual .mockup-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.detail-section .detail-visual .mockup-header .dot:nth-child(1) { background: #FF5F57; }
.detail-section .detail-visual .mockup-header .dot:nth-child(2) { background: #FFBD2E; }
.detail-section .detail-visual .mockup-header .dot:nth-child(3) { background: #28C840; }
.detail-section .detail-visual .mockup-header span { margin-left: 12px; font-size: 13px; color: #999; }
.detail-section .detail-visual .mockup-body { padding: 24px; }

/* Mockup 表格 */
.mockup-table { width: 100%; border-collapse: collapse; }
.mockup-table th, .mockup-table td {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #EEF0F2;
}
.mockup-table th {
    color: #646A73;
    font-weight: 500;
    background: #F8F9FA;
}

/* Mockup 标签 */
.mockup-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.mockup-tag.green { background: #D1FAE5; color: #065F46; }
.mockup-tag.blue { background: #E8EAED; color: #4E5969; }
.mockup-tag.amber { background: #FEF3C7; color: #92400E; }
.mockup-tag.purple { background: #EDE9FE; color: #5B21B6; }
.mockup-tag.red { background: #FEE2E2; color: #991B1B; }

/* ===== Core Feature Cards (核心功能卡片) ===== */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: #FFFFFF; border: 1px solid #EEF0F2; border-radius: 16px;
    padding: 32px; transition: box-shadow 0.3s, transform 0.3s; cursor: pointer;
}
.feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-2px); }
.feature-card .icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: #F0F4FF; }
.feature-card .icon svg { width: 26px; height: 26px; stroke: #3370FF; }
.feature-card h3 { font-size: 20px; font-weight: 600; color: #1F2329; margin-bottom: 10px; }
.feature-card p { font-size: 15px; line-height: 1.7; color: #646A73; }
.feature-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-card .tag-list .tag { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: #F2F3F5; color: #4E5969; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--erp-primary);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    line-height: 1;
    text-decoration: none;
}
.btn-primary:hover { background: var(--erp-primary-hover); }
.btn-primary:active { background: var(--erp-primary-active); transform: scale(0.97); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    line-height: 1;
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.75); }
.btn-lg {
    font-size: 17px;
    padding: 14px 40px;
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
    background: #ffffff;
}
.faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-list details {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0ee;
    overflow: hidden;
    transition: box-shadow 0.211s;
}
.faq-list details:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.058); }
.faq-list summary {
    padding: 20px 26px;
    font-weight: 615;
    font-size: 1rem;
    color: #1a2940;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    font-size: 1.532rem;
    font-weight: 296;
    color: var(--erp-accent);
    transition: transform 0.232s;
}
.faq-list details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 26px 20px 26px;
    font-size: 0.972rem;
    color: #5a6a72;
    line-height: 1.682;
}

/* ===== Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== Shared Responsive ===== */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-text .hero-actions { justify-content: center; }
    .detail-section .container,
    .detail-section.reverse .container {
        flex-direction: column;
        gap: 48px;
    }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .erp-crumb { padding: 12px 16px 0; }
    .container { padding: 0 20px; }
    .hero { padding: 100px 0 60px; }
    .hero-text h1 { font-size: 32px; color: #fff; }
    .hero-text p { font-size: 16px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; margin-bottom: 40px; }
    .detail-section { padding: 60px 0; }
    .detail-section .detail-text h2 { font-size: 26px; }
    .faq { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 28px; }
    .btn-lg { width: 100%; }
    .hero-text .hero-actions { flex-direction: column; }
}
