/* ============================================================
   國際人工智能有限公司 iaicltd.com
   政務藍金 · 淺色簡潔風格
   Palette: gov-blue #015293 | gold #C0B283 | text #1F2A37
   ============================================================ */
:root {
    --gov-blue: #015293;
    --gov-blue-dark: #013A66;
    --gov-blue-light: #E8F0F8;
    --gold: #C0B283;
    --gold-dark: #A6945F;
    --gold-light: #F5F1E6;
    --text: #1F2A37;
    --text-light: #5B6B7C;
    --border: #E3E9F0;
    --bg: #FFFFFF;
    --bg-soft: #FAFCFE;
    --hero-a: #F3FAFF;
    --hero-b: #E8F0F8;
    --shadow: 0 2px 12px rgba(1, 58, 102, 0.06);
    --shadow-hover: 0 8px 24px rgba(1, 58, 102, 0.10);
    --radius: 8px;
    --maxw: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
}
a { color: var(--gov-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark {
    width: 42px; height: 42px; flex: none;
    background: var(--gov-blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 1px var(--gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-text .cn { font-size: 16.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo-text .en { font-size: 10.5px; color: var(--text-light); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-link {
    display: block; padding: 8px 14px; font-size: 15px; font-weight: 500;
    color: #33475B; border-radius: 6px; position: relative;
}
.nav-link:hover { color: var(--gov-blue); background: var(--hero-a); }
.nav-link.active { color: var(--gov-blue); font-weight: 700; }
.nav-link.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; background: var(--gold); border-radius: 1px;
}
.nav-cta {
    display: inline-block; margin-left: 8px; padding: 8px 20px;
    font-size: 14.5px; font-weight: 600; color: var(--gov-blue);
    background: #fff; border: 1.5px solid var(--gov-blue); border-radius: 6px;
    transition: all .2s;
}
.nav-cta:hover { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }

/* language dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
    padding: 8px 12px; font-size: 14px; color: #33475B; cursor: pointer;
    border: 1px solid var(--border); border-radius: 6px; user-select: none; white-space: nowrap;
}
.lang-btn:hover { color: var(--gov-blue); border-color: var(--gov-blue); }
.lang-btn .arrow { font-size: 9px; color: var(--gold-dark); margin-left: 4px; }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-hover); min-width: 160px; padding: 6px 0; z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 16px; font-size: 14px; color: var(--text);
}
.lang-menu a:hover { background: var(--hero-a); color: var(--gov-blue); }
.lang-menu a .check { color: var(--gold-dark); font-size: 13px; visibility: hidden; }
.lang-menu a.active { color: var(--gov-blue); font-weight: 600; }
.lang-menu a.active .check { visibility: visible; }

.nav-toggle { display: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
    border-bottom: 1px solid var(--border);
    padding: 88px 0 80px; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent 15%, var(--gold) 50%, transparent 85%);
}
.hero-eyebrow {
    display: inline-block; font-size: 12.5px; letter-spacing: 2.5px;
    color: var(--gold-dark); font-weight: 600; text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(30px, 4.6vw, 46px); line-height: 1.28; font-weight: 700;
    color: var(--gov-blue-dark); max-width: 820px; margin: 0 auto 20px;
}
.hero h1 .gold { color: var(--gold-dark); }
.hero p.hero-sub {
    font-size: 17px; color: var(--text-light); max-width: 720px; margin: 0 auto 34px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 6px;
    font-size: 15px; font-weight: 600; transition: all .2s; border: 1.5px solid transparent;
}
.btn-primary { color: var(--gov-blue); border-color: var(--gov-blue); background: #fff; }
.btn-primary:hover { background: var(--gov-blue); color: #fff; }
.btn-outline { color: var(--text); border-color: var(--gold); background: #fff; }
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-eyebrow {
    display: inline-block; font-size: 12.5px; letter-spacing: 2.5px; font-weight: 600;
    color: var(--gold-dark); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3vw, 32px); color: var(--gov-blue-dark); font-weight: 700; line-height: 1.35; }
.section-title::after {
    content: ""; display: block; width: 44px; height: 3px;
    background: var(--gold); margin: 14px auto 0; border-radius: 2px;
}
.section-desc { color: var(--text-light); margin-top: 16px; font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; transition: all .25s;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon {
    width: 48px; height: 48px; border-radius: 8px; margin-bottom: 18px;
    background: var(--hero-a); color: var(--gov-blue);
    display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; color: var(--gov-blue-dark); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--text-light); }
.card .card-en { font-size: 11.5px; letter-spacing: 1.5px; color: var(--gold-dark); text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 600; }

/* research & consulting cards */
.feature-card {
    background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold);
    border-radius: var(--radius); padding: 34px 30px; transition: all .25s;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-card h3 { font-size: 20px; color: var(--gov-blue-dark); margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 15px; margin-bottom: 14px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
    font-size: 13px; color: var(--gov-blue); background: var(--hero-a);
    border: 1px solid var(--gov-blue-light); padding: 4px 12px; border-radius: 999px;
}

/* ---------- About brief / info chips ---------- */
.about-brief { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-brief h3 { font-size: 24px; color: var(--gov-blue-dark); margin-bottom: 16px; }
.about-brief p { color: var(--text-light); font-size: 15.5px; margin-bottom: 14px; }
.info-chips { display: flex; flex-direction: column; gap: 12px; }
.info-chip {
    display: flex; align-items: baseline; gap: 14px;
    background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--gold);
    border-radius: 6px; padding: 14px 20px;
}
.info-chip .k { font-size: 13px; color: var(--text-light); flex: none; min-width: 110px; }
.info-chip .v { font-size: 15px; font-weight: 600; color: var(--gov-blue-dark); }

/* ---------- Stats ---------- */
.stats-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 34px 12px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-num { font-size: 34px; font-weight: 700; color: var(--gov-blue); line-height: 1.2; }
.stat-num .suffix { font-size: 16px; color: var(--gold-dark); margin-left: 2px; font-weight: 600; }
.stat-label { font-size: 13.5px; color: var(--text-light); margin-top: 6px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
    border-bottom: 1px solid var(--border);
    padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent 15%, var(--gold) 50%, transparent 85%);
}
.breadcrumb { font-size: 13.5px; color: var(--text-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gov-blue); }
.breadcrumb .sep { margin: 0 8px; color: var(--gold-dark); }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 36px); color: var(--gov-blue-dark); font-weight: 700; }
.page-hero .page-sub { color: var(--text-light); max-width: 640px; margin: 12px auto 0; font-size: 15.5px; }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 36px 0; border-bottom: 1px solid var(--border); }
.svc-block:last-of-type { border-bottom: none; }
.svc-num {
    width: 52px; height: 52px; border-radius: 8px; margin-top: 4px;
    border: 1.5px solid var(--gold); color: var(--gov-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; font-family: Georgia, serif;
}
.svc-block h3 { font-size: 21px; color: var(--gov-blue-dark); margin-bottom: 4px; }
.svc-block .svc-en { font-size: 12px; letter-spacing: 2px; color: var(--gold-dark); text-transform: uppercase; font-weight: 600; }
.svc-block p { color: var(--text-light); font-size: 15px; margin: 12px 0 14px; max-width: 760px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; max-width: 760px; }
.check-list li { font-size: 14.5px; color: var(--text); padding-left: 26px; position: relative; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--gold-dark); font-weight: 700; font-size: 14px;
}

/* ---------- Info table ---------- */
.info-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th, .info-table td { padding: 15px 22px; font-size: 14.5px; text-align: left; vertical-align: top; }
.info-table th {
    width: 200px; background: var(--bg-soft); color: var(--text-light);
    font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.info-table td { color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- Mission / Vision cards ---------- */
.mvv-card { text-align: center; padding: 36px 28px; }
.mvv-card .mvv-icon {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--gold); color: var(--gov-blue);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.mvv-card h3 { font-size: 18px; color: var(--gov-blue-dark); margin-bottom: 10px; }
.mvv-card p { font-size: 14.5px; color: var(--text-light); }

/* ---------- Contact ---------- */
.contact-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; text-align: center; transition: all .25s;
}
.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); }
.contact-card .cc-icon {
    width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 8px;
    background: var(--hero-a); color: var(--gov-blue);
    display: flex; align-items: center; justify-content: center;
}
.contact-card .cc-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 16.5px; color: var(--gov-blue-dark); margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: var(--text-light); word-break: break-word; }
.contact-card a.cc-link { color: var(--gov-blue); font-weight: 600; }
.contact-card a.cc-link:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta-section { padding: 72px 0; }
.cta-box {
    background: #fff; border: 1px solid var(--gold); border-radius: 12px;
    padding: 52px 40px; text-align: center; position: relative;
}
.cta-box::before, .cta-box::after {
    content: ""; position: absolute; width: 34px; height: 34px;
    border-color: var(--gold); border-style: solid;
}
.cta-box::before { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; border-radius: 12px 0 0 0; }
.cta-box::after { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 12px 0; }
.cta-box h2 { font-size: clamp(22px, 3vw, 28px); color: var(--gov-blue-dark); margin-bottom: 12px; }
.cta-box p { color: var(--text-light); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 2px solid var(--gov-blue); position: relative; }
.site-footer::before {
    content: ""; position: absolute; top: 2px; left: 0; right: 0; height: 1px; background: var(--gold);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { font-size: 13.5px; color: var(--text-light); margin-top: 14px; }
.footer-col h4 {
    font-size: 14.5px; color: var(--gov-blue-dark); margin-bottom: 14px; font-weight: 700;
    padding-bottom: 8px; position: relative;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col li a { color: var(--text-light); }
.footer-col li a:hover { color: var(--gov-blue); }
.footer-col li .plain { color: var(--text-light); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 18px 0;
    font-size: 12.5px; color: var(--text-light); text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-brief { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: none; }
    .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
    .nav-menu {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
        box-shadow: var(--shadow-hover);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-link { padding: 12px 14px; }
    .nav-cta { margin: 10px 0 4px; text-align: center; }
    .lang-dropdown { margin: 8px 0; }
    .lang-menu { right: 0; left: 0; }
    .nav-toggle { display: block; }
    .logo-text .en { display: none; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 56px; }
    .svc-block { grid-template-columns: 1fr; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .info-table th, .info-table td { padding: 12px 14px; }
    .info-table th { width: 120px; }
}
