/* ============================================================
   JUSTIMM CMS - 前台样式（还原 Ardot 设计稿）
   设计稿尺寸: 1440px 宽
   配色: Primary #1E3A8A / Accent #B45309 / BG #F8FAFC / FG #0F172A
   字体: Playfair Display (标题) / Inter (正文)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1E3A8A;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #B45309;
    --accent-light: #D97706;
    --bg: #F8FAFC;
    --fg: #0F172A;
    --muted-bg: #E9EEF5;
    --muted-bg-alt: #F1F5F9;
    --card: #FFFFFF;
    --dark: #0F172A;
    --hero-bg: #0F1D3B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1280px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.15;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}
.section-padding {
    padding: 100px 0;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    height: 84px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
}
.header-nav a:hover,
.header-nav a.active { color: var(--primary); }
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.header-cta:hover { background: var(--primary-dark); }

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero-section {
    background: var(--hero-bg);
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 84px;
    position: relative;
    overflow: hidden;
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(180, 83, 9, 0.15);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 18px;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Hero Visual */
.hero-visual {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
}
.globe {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    background: radial-gradient(circle at 40% 40%, rgba(30,58,138,0.8), rgba(15,23,42,0.9));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 80px rgba(30,58,138,0.3);
}
.globe-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* ---------- Services ---------- */
.services-section { background: var(--card); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-step {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 12px;
}
.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Core Projects ---------- */
.projects-section {
    background: var(--primary);
}
.projects-section .section-title { color: #fff; }
.projects-section .section-subtitle { color: rgba(255,255,255,0.7); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30,58,138,0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}
.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 12px;
}
.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }
.project-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--primary);
}
/* Project grid: row 2 centers 2 cards */
.projects-grid .project-card:nth-child(4),
.projects-grid .project-card:nth-child(5) {
    /* Handled by grid placement */
}

/* ---------- Advantages ---------- */
.advantages-section { background: var(--bg); }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}
.advantage-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.advantage-card.wide { grid-column: span 2; }
.advantage-card.tall { grid-row: span 2; }
.advantage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(30,58,138,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 10px;
}
.advantage-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--card); }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.stat-item { text-align: center; }
.stat-value {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--muted-bg-alt);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.testimonial-quote {
    font-size: 15px;
    color: var(--fg);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-top: 20px;
}
.testimonial-quote::before {
    content: '';
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    position: absolute;
    top: -10px;
    left: 0;
}
.testimonial-author { font-size: 15px; font-weight: 600; color: var(--fg); }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-section { background: var(--muted-bg-alt); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.highlighted {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.04);
}
.pricing-card.highlighted:hover { transform: scale(1.04) translateY(-4px); }
.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 16px;
}
.pricing-card.highlighted .pricing-name { color: rgba(255,255,255,0.9); }
.pricing-price {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-card.highlighted .pricing-price { color: #fff; }
.pricing-currency { font-size: 24px; font-weight: 400; }
.pricing-unit { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.pricing-card.highlighted .pricing-unit { color: rgba(255,255,255,0.7); }
.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pricing-card.highlighted .pricing-desc { color: rgba(255,255,255,0.7); }
.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    font-size: 14px;
    color: var(--fg);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-card.highlighted .pricing-features li {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.1);
}
.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.pricing-card.highlighted .pricing-features li::before { background: var(--accent); }
.pricing-cta {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.2s;
}
.pricing-cta:hover { background: var(--primary); color: #fff; }
.pricing-card.highlighted .pricing-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pricing-card.highlighted .pricing-cta:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--card); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
    text-align: left;
    gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--text-muted);
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #CBD5E1;
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .header-logo { margin-bottom: 16px; }
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 280px;
}
.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-contact p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-light);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-light); transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root { --container: 92%; }
    .section-title { font-size: 36px; }
    .section-padding { padding: 72px 0; }

    .hero-section .container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 52px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { flex: 0 0 280px; height: 280px; }
    .globe { width: 250px; height: 250px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: 1fr 1fr; }
    .advantage-card.wide { grid-column: span 2; }
    .advantage-card.tall { grid-row: span 1; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.highlighted { transform: none; }
    .pricing-card.highlighted:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .section-title { font-size: 28px; }
    .section-header { margin-bottom: 40px; }
    .section-padding { padding: 56px 0; }

    .site-header { height: 64px; }
    .header-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .header-nav.active { display: flex; }
    .mobile-toggle { display: flex; }

    .hero-section { min-height: 500px; padding-top: 64px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-visual { flex: 0 0 200px; height: 200px; }
    .globe { width: 180px; height: 180px; }

    .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .advantages-grid { grid-template-columns: 1fr; }
    .advantage-card.wide { grid-column: span 1; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-value { font-size: 32px; }
    .pricing-grid { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
