/* =====================================================
   TenderHK 定制樣式 · 墨綠 + 暖金色系（響應式）
   與 biaoshu160（深藍+金）區分，版式結構對齊
   ===================================================== */

:root {
    --th-green: #0E5C47;      /* 主色 · 墨綠 */
    --th-green-dark: #083D30; /* 深墨綠（頁腳/深底） */
    --th-green-50: #EAF4F0;   /* 淺綠底 */
    --th-gold: #E8B84B;       /* 點綴 · 暖金 */
    --th-cream: #F5F2EA;      /* 暖米白底 */
    --th-ink: #1A1A1A;
    --th-gray: #5A6470;
    --th-wa: #25D366;         /* WhatsApp */
    --th-radius: 10px;
}

/* ---------- 基礎 ---------- */
body { color: var(--th-ink); }
a { text-decoration: none; }

/* ---------- 頭部導航 ---------- */
.th-header {
    background: var(--th-green);
    position: sticky;
    top: 0;
    z-index: 999;
}
.th-header-line {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 64px;
}
.th-logo img { max-height: 44px; width: auto; }
.th-logo { flex: 0 0 auto; }
.th-nav { flex: 1 1 auto; }
.th-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.th-nav > ul > li { position: relative; }
.th-nav > ul > li > a {
    display: block;
    color: #fff;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 8px;
}
.th-nav > ul > li.active > a,
.th-nav > ul > li > a:hover { background: rgba(255,255,255,.12); }
.th-drop {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 1000;
}
.th-nav > ul > li:hover .th-drop { display: block; }
.th-drop a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--th-ink);
}
.th-drop a:hover { background: var(--th-green-50); color: var(--th-green); }
.th-header-cta {
    flex: 0 0 auto;
    background: var(--th-gold);
    color: var(--th-green-dark);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 8px;
}
.th-header-cta:hover { opacity: .9; }
.th-menu-btn { display: none; }

/* ---------- Hero ---------- */
.th-hero {
    background: var(--th-cream);
    padding: 56px 0 48px;
}
.th-hero-line {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.th-hero-text { flex: 1.4; }
.th-hero-tag {
    color: var(--th-green);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px;
}
.th-hero-title {
    font-size: 34px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--th-ink);
    margin: 0 0 14px;
}
.th-hero-sub {
    font-size: 15px;
    line-height: 1.8;
    color: var(--th-gray);
    margin: 0 0 22px;
}
.th-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.th-btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 8px;
}
.th-btn-green { background: var(--th-green); color: #fff; }
.th-btn-green:hover { opacity: .92; }
.th-btn-ghost { border: 1px solid var(--th-green); color: var(--th-green); }
.th-btn-ghost:hover { background: var(--th-green-50); }
.th-btn-gold { background: var(--th-gold); color: var(--th-green-dark); }
.th-btn-wa { background: var(--th-wa); color: #fff; }
.th-hero-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.th-stat {
    background: #fff;
    border-radius: var(--th-radius);
    padding: 18px 12px;
    text-align: center;
}
.th-stat-num {
    font-size: 26px;
    font-weight: 500;
    color: var(--th-green);
    margin: 0 0 4px;
}
.th-stat-num span { font-size: 15px; }
.th-stat-label { font-size: 13px; color: var(--th-gray); margin: 0; }

/* ---------- 通用板塊 ---------- */
.th-section { padding: 48px 0; }
.th-section-alt { background: var(--th-cream); }
.th-section-title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    color: var(--th-ink);
    margin: 0 0 28px;
}
.th-section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--th-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ---------- 核心服務 ---------- */
.th-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.th-service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--th-radius);
    padding: 22px 18px;
    transition: border-color .2s;
}
.th-service-card:hover { border-color: var(--th-green); }
.th-service-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--th-green);
    margin: 0 0 8px;
}
.th-service-desc { font-size: 13px; color: var(--th-gray); margin: 0; line-height: 1.7; }

/* ---------- 服務流程 ---------- */
.th-step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.th-step-card {
    background: #fff;
    border-radius: var(--th-radius);
    padding: 18px;
}
.th-step-no { font-size: 14px; font-weight: 500; color: var(--th-gold); margin: 0 0 6px; }
.th-step-name { font-size: 16px; font-weight: 500; color: var(--th-ink); margin: 0 0 6px; }
.th-step-desc { font-size: 13px; color: var(--th-gray); margin: 0; }

/* ---------- 投標學院精選（Tab + 網格，替代輪播） ---------- */
.th-tab { max-width: 1200px; margin: 0 auto; }
.th-tab-nav li a {
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--th-gray);
}
.th-tab-nav li.active a { background: var(--th-green); color: #fff; }
.th-tab-body { margin-top: 20px; }
.th-tab-body .tab-panel { display: none; }
.th-tab-body .tab-panel.active { display: block; }
.th-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.th-article-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--th-radius);
    padding: 18px;
}
.th-article-card:hover { border-color: var(--th-green); }
.th-article-title {
    font-size: 15px;
    line-height: 1.6;
    color: var(--th-ink);
    margin: 0 0 10px;
}
.th-article-date { font-size: 13px; color: var(--th-gray); margin: 0; }
.th-more { text-align: center; margin: 20px 0 0; }
.th-more a { color: var(--th-green); font-size: 14px; }

/* ---------- 常見問題 ---------- */
.th-faq-list { max-width: 800px; margin: 0 auto; }
.th-faq-item {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--th-radius);
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--th-ink);
    line-height: 1.6;
}
.th-faq-item:hover { border-color: var(--th-green); color: var(--th-green); }

/* ---------- CTA ---------- */
.th-cta { background: var(--th-green); padding: 44px 0; }
.th-cta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.th-cta-title { font-size: 22px; font-weight: 500; color: #fff; margin: 0 0 8px; }
.th-cta-sub { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.th-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 頁腳 ---------- */
.th-footer {
    background: var(--th-green-dark);
    color: rgba(255,255,255,.85);
    padding: 44px 0 0;
    font-size: 14px;
}
.th-footer-line {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 28px;
}
.th-footer-name { font-size: 20px; font-weight: 500; color: #fff; margin: 0 0 10px; }
.th-footer-head { font-size: 15px; font-weight: 500; color: #fff; margin: 0 0 12px; }
.th-footer-text { line-height: 1.8; margin: 0; }
.th-footer-col ul { list-style: none; margin: 0; padding: 0; }
.th-footer-col li { margin-bottom: 9px; line-height: 1.6; }
.th-footer-col a { color: rgba(255,255,255,.85); }
.th-footer-col a:hover { color: var(--th-gold); }
.th-footer-qr { margin-top: 14px; text-align: center; }
.th-footer-qr img { width: 96px; height: 96px; border-radius: 6px; }
.th-footer-qr p { font-size: 12px; margin: 6px 0 0; color: rgba(255,255,255,.7); }
.th-flink {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 14px 0;
    font-size: 13px;
}
.th-flink a { color: rgba(255,255,255,.85); margin-left: 12px; }
.th-flink a:hover { color: var(--th-gold); }
.th-copyright {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 14px 0 18px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.th-copyright-links a { color: rgba(255,255,255,.6); margin-left: 12px; }

/* ---------- 手機菜單 ---------- */
.th-mobile-menu { display: none; }

/* =====================================================
   響應式（≤1024px 平板 / ≤768px 手機）
   ===================================================== */
@media (max-width: 1024px) {
    .th-hero-line { flex-direction: column; align-items: stretch; gap: 28px; }
    .th-service-grid, .th-step-grid { grid-template-columns: repeat(2, 1fr); }
    .th-article-grid { grid-template-columns: repeat(2, 1fr); }
    .th-footer-line { grid-template-columns: repeat(2, 1fr); }

    .th-nav, .th-header-cta { display: none; }
    .th-menu-btn {
        display: block;
        margin-left: auto;
        background: none;
        border: 0;
        padding: 10px;
        cursor: pointer;
    }
    .th-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        margin: 5px 0;
    }
    .th-mobile-menu.open { display: block; background: var(--th-green); padding: 8px 20px 16px; }
    .th-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
    .th-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.1); padding: 4px 0; }
    .th-mobile-menu a {
        display: block;
        color: #fff;
        font-size: 15px;
        padding: 9px 0;
    }
    .th-mobile-menu a.th-sub {
        color: rgba(255,255,255,.75);
        font-size: 14px;
        padding-left: 16px;
    }
    .th-mobile-cta {
        background: var(--th-gold);
        color: var(--th-green-dark) !important;
        border-radius: 8px;
        text-align: center;
        padding: 10px 0 !important;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {
    .th-hero { padding: 36px 0 32px; }
    .th-hero-title { font-size: 25px; }
    .th-hero-btns .th-btn { flex: 1 1 auto; text-align: center; }
    .th-section { padding: 36px 0; }
    .th-section-title { font-size: 20px; }
    .th-service-grid, .th-step-grid, .th-article-grid { grid-template-columns: 1fr; }
    .th-cta-title { font-size: 18px; }
    .th-cta-btns { width: 100%; }
    .th-cta-btns .th-btn { flex: 1 1 auto; text-align: center; }
    .th-footer-line { grid-template-columns: 1fr; }
    .th-copyright { flex-direction: column; gap: 6px; }
}
