/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b81;
    --gold: #f5a623;
    --green: #2ecc71;
    --blue: #3498db;
    --purple: #9b59b6;
    --bg: #fafbfc;
    --bg-dark: #0f0f1a;
    --bg-alt: #f0f2f5;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-on-dark: #ecf0f1;
    --border: #e1e4e8;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --card-hover: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Level colors */
    --l0: #3498db;
    --l1: #2ecc71;
    --l2: #f39c12;
    --l3: #e74c3c;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-obi { color: var(--accent); }
.logo-dot { color: var(--gold); margin: 0 2px; }
.logo-wd { color: var(--primary); }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(233, 69, 96, 0.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(233,69,96,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52,152,219,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245,166,35,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233,69,96,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(6px); }
    60% { transform: rotate(45deg) translateY(3px); }
}

/* ========== Sections ========== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 16px;
    border: 1px solid rgba(233,69,96,0.2);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
}

.section-dark .section-desc {
    color: rgba(255,255,255,0.5);
}

/* ========== Inventory ========== */
.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.inventory-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.inventory-card:hover {
    box-shadow: var(--card-hover);
}

.inventory-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.inventory-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    flex: 1;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.status-icon.done {
    background: rgba(46,204,113,0.1);
    color: var(--green);
}

.status-icon.warn {
    background: rgba(231,76,60,0.1);
    color: var(--l3);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.badge-green { background: rgba(46,204,113,0.1); color: var(--green); }
.badge-red { background: rgba(231,76,60,0.1); color: var(--l3); }

.material-list {
    list-style: none;
    padding: 16px 28px 24px;
}

.material-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
}

.material-list li:last-child {
    border-bottom: none;
}

.material-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-onboard { background: #e8f4fd; color: #2980b9; }
.tag-strategy { background: #fdf2e8; color: #e67e22; }
.tag-sop { background: #e8fdf0; color: #27ae60; }
.tag-video { background: #f3e8fd; color: #8e44ad; }
.tag-skill { background: #fde8e8; color: #c0392b; }
.tag-social { background: #e8fdfa; color: #16a085; }
.tag-think { background: #fdf8e8; color: #f39c12; }
.tag-product { background: #e8e8fd; color: #2c3e50; }

.material-name {
    flex: 1;
    min-width: 200px;
}

.material-service {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

.priority {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.priority-high { background: #fde8e8; color: #e74c3c; }
.priority-mid { background: #fdf8e8; color: #f39c12; }
.priority-low { background: #e8fdf0; color: #27ae60; }

/* ========== Path Timeline ========== */
.path-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 60px;
}

.path-line {
    position: absolute;
    top: 78px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--l0), var(--l1), var(--l2), var(--l3));
    border-radius: 2px;
}

.path-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.path-node:hover {
    transform: translateY(-4px);
}

.path-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.level0-dot { background: var(--l0); box-shadow: 0 0 0 4px rgba(52,152,219,0.3); }
.level1-dot { background: var(--l1); box-shadow: 0 0 0 4px rgba(46,204,113,0.3); }
.level2-dot { background: var(--l2); box-shadow: 0 0 0 4px rgba(243,156,18,0.3); }
.level3-dot { background: var(--l3); box-shadow: 0 0 0 4px rgba(231,76,60,0.3); }

.path-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    width: 100%;
    transition: var(--transition);
}

.path-node:hover .path-card {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.path-level {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.path-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 8px 0 4px;
}

.path-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.path-goal {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    line-height: 1.5;
}

.path-modules {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(233,69,96,0.3);
    border-radius: 50px;
    display: inline-block;
}

/* ========== Level Sections ========== */
.level-section {
    padding: 80px 0;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--card-shadow);
}

.section-alt .level-header {
    background: #fff;
}

.level-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.level0-theme .level-badge { background: var(--l0); }
.level1-theme .level-badge { background: var(--l1); }
.level2-theme .level-badge { background: var(--l2); }
.level3-theme .level-badge { background: var(--l3); }

.level-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.level-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.level-meta span {
    padding: 2px 12px;
    background: var(--bg-alt);
    border-radius: 50px;
}

/* ========== Module Cards ========== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.module-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-alt .module-card {
    background: #fff;
}

.module-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-2px);
}

.module-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-light);
    background: var(--bg-alt);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-right: 50px;
}

.required {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(233,69,96,0.08);
    padding: 3px 10px;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 4px;
}

.tag-missing {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e67e22;
    background: rgba(230,126,34,0.1);
    padding: 3px 10px;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 4px;
}

.module-items {
    list-style: none;
}

.module-items li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.module-items li::before {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.85rem;
}

.item-read::before { content: "\1F4D6"; }
.item-practice::before { content: "\1F527"; }
.item-task::before { content: "\2705"; }
.item-tool::before { content: "\1F527"; }
.item-key::before { content: "\1F4CC"; }
.item-warn::before { content: "\26A0\FE0F"; }

.item-warn {
    color: #e67e22;
    font-weight: 500;
}

/* ========== Action Plan ========== */
.quarter-block {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.quarter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    flex-wrap: wrap;
}

.q-high { background: rgba(231,76,60,0.12); }
.q-mid { background: rgba(243,156,18,0.12); }
.q-low { background: rgba(46,204,113,0.12); }

.quarter-icon {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-high .quarter-icon { background: var(--l3); }
.q-mid .quarter-icon { background: var(--l2); }
.q-low .quarter-icon { background: var(--green); }

.quarter-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.quarter-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.quarter-deadline {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
}

.quarter-table {
    padding: 8px 32px 24px;
}

.quarter-table table {
    width: 100%;
    border-collapse: collapse;
}

.quarter-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.quarter-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.quarter-table tr:last-child td {
    border-bottom: none;
}

/* ========== Footer ========== */
.footer {
    background: var(--primary);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

.footer-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-note p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .path-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .path-line {
        display: none;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-110%);
        transition: var(--transition);
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .level-header {
        flex-direction: column;
        text-align: center;
    }

    .level-meta {
        justify-content: center;
    }

    .path-timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .quarter-header {
        flex-direction: column;
        text-align: center;
    }

    .quarter-deadline {
        margin-left: 0;
    }

    .quarter-table {
        padding: 8px 12px 16px;
        overflow-x: auto;
    }
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
