/* ═══════════════════════════════════════
   農創家旅遊 — 企業包團入口
═══════════════════════════════════════ */

/* ── 主站 Navbar 企業按鈕 ── */
.btn-enterprise-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2d6a35;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}
.btn-enterprise-login:hover {
    background: #235429;
    color: #fff;
    box-shadow: 0 4px 14px rgba(45,106,53,.3);
    text-decoration: none;
}
.btn-enterprise-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #2d6a35;
    border: 1.5px solid #2d6a35;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.btn-enterprise-register:hover {
    background: #eaf4ea;
    color: #235429;
    box-shadow: 0 2px 10px rgba(45,106,53,.15);
    text-decoration: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f7f3;
}

/* 公告列 */
.announce-bar {
    background: #6aaa20;
    color: #fff;
    text-align: center;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3px;
}
.announce-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 頁首 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 48px;
    display: flex;
    align-items: center;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 44px; height: 44px;
    background: #2d6a35;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Noto Serif TC', serif;
    font-size: 20px;
    font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .cn { font-size: 16px; font-weight: 700; color: #2d6a35; }
.logo-text .en { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #888; }

.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a {
    padding: 8px 14px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.site-nav a:hover { background: #f0f8f0; color: #2d6a35; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1e4d26 0%, #2d6a35 50%, #4a8840 100%);
    color: #fff;
    padding: 90px 20px 100px;
    text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.hero-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}
.hero-sub { font-size: 17px; opacity: .92; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary, .btn-hero-secondary {
    padding: 14px 38px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s;
}
.btn-hero-primary { background: #fff; color: #2d6a35; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-hero-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.6);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); }

/* Features */
.features-section { max-width: 1140px; margin: 0 auto; padding: 70px 24px; }
.section-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 30px;
    font-weight: 700;
    color: #2d6a35;
    text-align: center;
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.feature-icon { font-size: 38px; margin-bottom: 14px; }
.feature-name { font-size: 17px; font-weight: 700; color: #1a4d20; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: #666; line-height: 1.7; }

/* Footer */
.site-footer {
    background: #1f3322;
    color: #cfd9c5;
    text-align: center;
    padding: 26px 20px;
    font-size: 13px;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.login-modal-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.register-modal-card { max-width: 720px; max-height: 90vh; overflow-y: auto; }
.modal-close-btn {
    position: absolute;
    top: 12px; right: 16px;
    width: 30px; height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}
.modal-close-btn:hover { color: #333; }
.login-modal-header { text-align: center; margin-bottom: 20px; }
.login-modal-icon { font-size: 38px; margin-bottom: 6px; }
.login-modal-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2d6a35;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 12px; }
.form-group label { font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 500; }
.form-group .req { color: #c0392b; }
.form-group input, .form-group select {
    padding: 10px 12px;
    border: 1px solid #d0d4cf;
    border-radius: 6px;
    font-size: 14px;
    background: #fafbfa;
    color: #333;
    outline: none;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
    border-color: #2d6a35;
    background: #fff;
}

.btn-login {
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background: #2d6a35;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login:hover { background: #1e4d26; }
.btn-login:disabled {
    background: #7aa67f;
    cursor: not-allowed;
}
.btn-login-loading {
    display: none;
    align-items: center;
    gap: 8px;
}
.btn-login.is-loading .btn-login-text {
    display: none;
}
.btn-login.is-loading .btn-login-loading {
    display: inline-flex;
}
.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
.login-error-msg {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #b04040;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}
.login-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}
.link-green { color: #2d6a35; font-weight: 700; text-decoration: none; cursor: pointer; }
.link-green:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .hero-title { font-size: 30px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .site-header { padding: 0 16px; }
}
