/* ==========================================================================
   Tawei Lee (李達維 茶米先生) Official Site - Stylesheet
   Design System: Executive Healthcare & AI Pioneer Aesthetic
   ========================================================================== */

:root {
    /* Color Palette - Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --bg-surface-subtle: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --brand-teal: #0d9488;
    --brand-teal-light: #14b8a6;
    --brand-teal-bg: #f0fdfa;
    --brand-teal-border: #ccfbf1;

    --brand-gold: #d97706;
    --brand-gold-light: #f59e0b;
    --brand-gold-bg: #fffbeb;
    --brand-gold-border: #fef3c7;

    --brand-indigo: #4f46e5;
    --brand-indigo-light: #6366f1;
    --brand-indigo-bg: #eef2ff;

    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 30px -10px rgba(13, 148, 136, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-serif: 'Noto Serif TC', serif;
    --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-glass: rgba(17, 24, 39, 0.85);
    --bg-surface-subtle: #1f2937;
    --bg-card: #131c2e;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-inverse: #0f172a;

    --brand-teal: #14b8a6;
    --brand-teal-light: #2dd4bf;
    --brand-teal-bg: rgba(20, 184, 166, 0.12);
    --brand-teal-border: rgba(20, 184, 166, 0.25);

    --brand-gold: #f59e0b;
    --brand-gold-light: #fbbf24;
    --brand-gold-bg: rgba(245, 158, 11, 0.12);
    --brand-gold-border: rgba(245, 158, 11, 0.25);

    --brand-indigo: #6366f1;
    --brand-indigo-light: #818cf8;
    --brand-indigo-bg: rgba(99, 102, 241, 0.15);

    --border-color: #1f2937;
    --border-color-hover: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 30px -10px rgba(20, 184, 166, 0.2);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.text-gradient-teal {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
    background: linear-gradient(135deg, var(--brand-gold), #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--brand-teal);
    flex-shrink: 0;
}

.brand-title {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--brand-teal);
    font-weight: 600;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    list-style: none;
    flex-shrink: 0;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-teal);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-teal);
    border-radius: 2px;
}

.nav-badge-ecare {
    background: linear-gradient(135deg, var(--brand-teal), #0f766e);
    color: white !important;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-badge-ecare:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.nav-badge-book {
    background: linear-gradient(135deg, var(--brand-gold), #b45309);
    color: white !important;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-badge-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--border-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-indigo));
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: var(--bg-surface-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
    background: var(--bg-surface);
}

.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold), #b45309);
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--brand-teal-bg);
    border: 1px solid var(--brand-teal-border);
    color: var(--brand-teal);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-tag-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-teal);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.hero-name {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero-alias {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-roles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.role-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portrait-frame:hover .portrait-img {
    transform: scale(1.03);
}

.stat-badge {
    position: absolute;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
}

.stat-badge-1 {
    top: 10%;
    left: -1.5rem;
}

.stat-badge-2 {
    bottom: 8%;
    right: -1.5rem;
}

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-teal {
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
}

.stat-icon-gold {
    background: var(--brand-gold-bg);
    color: var(--brand-gold);
}

.stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Section Header Component */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-badge-teal {
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    border: 1px solid var(--brand-teal-border);
}

.section-badge-gold {
    background: var(--brand-gold-bg);
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold-border);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Executive Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-teal);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.summary-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.summary-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Philosophy Section */
.philosophy-banner {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(217, 119, 6, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.philosophy-quote {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-quote-mark {
    font-size: 3rem;
    color: var(--brand-gold);
    line-height: 0;
    display: block;
    margin-bottom: 1rem;
}

/* G.O.L.D. Matrix Toggle Tabs */
.gold-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-sm);
}

.gold-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.gold-tab-btn {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.gold-tab-btn.active {
    background: linear-gradient(135deg, var(--brand-gold), #b45309);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.gold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.gold-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: transform var(--transition-fast);
}

.gold-card:hover {
    transform: translateY(-4px);
}

.gold-letter {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-gold);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.gold-term {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gold-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Seven Care Strategies Grid (七勢達) */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.strategy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all var(--transition-fast);
}

.strategy-card:hover {
    border-color: var(--brand-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.strategy-num {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.strategy-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.strategy-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* AI Smart Care Innovation Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
}

.tech-card:hover {
    border-color: var(--brand-indigo-light);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-indigo-bg);
    color: var(--brand-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.tech-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tech-card-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.tech-demo-btn {
    align-self: flex-start;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-subtle);
    color: var(--brand-indigo);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tech-demo-btn:hover {
    background: var(--brand-indigo);
    color: white;
    border-color: var(--brand-indigo);
}

/* Interactive Demos / Live Simulators Container inside Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Career Timeline Section */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: var(--border-color);
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-teal);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--brand-teal-bg);
    transform: translateX(-50%);
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
    }
}

.timeline-content {
    position: relative;
    width: calc(100% - 50px);
    margin-left: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--brand-teal);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content {
        width: calc(50% - 40px);
        margin-left: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        width: calc(50% - 40px);
        margin-left: calc(50% + 40px);
    }
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-org {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 1rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Book Showcase Section (茶米先生的書房) */
.book-showcase-section {
    background: linear-gradient(135deg, #1e1b18 0%, #2c2418 100%);
    color: #faf8f4;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.book-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.book-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #fef3c7;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.book-showcase-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.book-showcase-desc {
    font-size: 1.05rem;
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.book-cover-stack {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-cover-img {
    width: 260px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
}

.book-cover-img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-info-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-info-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-action-btn {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--brand-teal);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--brand-teal-bg);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--brand-teal-bg);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--brand-teal);
}

/* Responsive Styles */
@media (max-width: 1250px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 1.25rem;
        align-items: flex-start;
    }

    .nav-menu.mobile-active {
        display: flex;
    }

    .mobile-nav-toggle {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero-grid, .book-showcase-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-name { font-size: 2.5rem; }
}

/* Eudaimonia Copy & Section Enhancements */
.hero-quote-box {
    margin: 1.5rem 0 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface-glass);
    border-left: 4px solid var(--brand-teal);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.hero-quote-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 600;
}

.definition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.definition-card {
    background: var(--bg-card);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.definition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-teal-light);
}

.definition-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.definition-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.definition-card-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Framework Table */
.framework-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    margin-top: 2rem;
}

.framework-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
}

.framework-table th {
    background: var(--bg-surface-subtle);
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.framework-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

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

.dimension-cell .dim-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.dimension-cell .dim-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-bottom: 0.4rem;
}

.badge-teal {
    background: var(--brand-teal-bg);
    color: var(--brand-teal);
    border: 1px solid var(--brand-teal-border);
}

.badge-gold {
    background: var(--brand-gold-bg);
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold-border);
}

.desc-cell {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.desc-cell strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* Three Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.pillar-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-teal);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-teal);
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

.pillar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pillar-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* CTA Banner */
.cta-section {
    padding: 4rem 0;
}

.cta-banner-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2dd4bf, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 750px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .definition-grid, .pillars-grid, .strategy-card-large {
        grid-template-columns: 1fr !important;
    }
    .cta-title {
        font-size: 1.75rem;
    }
}

/* AI Chat Assistant Floating Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-sans);
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), #0d9488);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    position: relative;
}

.ai-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.6);
}

.ai-chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
}

.ai-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--bg-card);
    border: 1px solid var(--brand-teal-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.ai-chat-box.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.ai-chat-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-title-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ai-chat-header-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.ai-chat-header-text p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ai-chat-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s;
}

.ai-chat-close-btn:hover {
    color: white;
}

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--bg-surface-subtle);
}

.chat-msg {
    max-width: 88%;
    padding: 0.7rem 0.95rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 0.2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--brand-teal);
    color: white;
    border-bottom-right-radius: 0.2rem;
}

.chat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.chat-pill-btn {
    background: var(--bg-card);
    border: 1px solid var(--brand-teal-border);
    color: var(--brand-teal-dark);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-pill-btn:hover {
    background: var(--brand-teal-bg);
    border-color: var(--brand-teal);
}

.ai-chat-input-area {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
}

.ai-chat-input:focus {
    border-color: var(--brand-teal);
}

.ai-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-teal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.ai-chat-send-btn:hover {
    background: var(--brand-teal-dark);
}



