/* ===== CSS Design System - Clean FinTech Style ===== */
:root {
    /* Primary Colors - Trust, Tech, Intelligence */
    --brand-blue: #1A73E8;
    --hover-blue: #1557B0;
    --light-blue: #E8F0FE;

    /* Accent Colors - Money, Opportunity, Alert */
    --profit-gold: #F59E0B;
    --pale-gold: #FEF3C7;

    /* Neutral Colors - Structure, Content */
    --heading-black: #202124;
    --body-gray: #5F6368;
    --border-gray: #E0E0E0;
    --background: #F8F9FA;
    --card-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Radiuses */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Typography */
    --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--body-gray);
    background: var(--background);
}

/* ===== 導航列 ===== */
nav {
    background: var(--card-white);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--body-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

/* 語言切換器 */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--brand-blue);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    z-index: 100;
}

.language-button * {
    pointer-events: none;
}

.language-button:hover {
    background: var(--brand-blue);
    color: white;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    display: none;
    z-index: 10000;
    overflow: visible;
    max-height: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-gray);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--light-blue);
}

.language-option.active {
    background: var(--light-blue);
    color: var(--brand-blue);
    font-weight: 600;
}

.language-flag {
    font-size: 20px;
}

.language-name {
    font-size: 14px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4285f4 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    background: var(--card-white);
    color: var(--brand-blue);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
}

/* ===== 三大決策分類 ===== */
.categories {
    max-width: 1200px;
    margin: -3rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.category-card {
    background: var(--card-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: var(--radius-lg);
    margin-left: auto;
    margin-right: auto;
}

.category-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--brand-blue);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.category-desc {
    color: var(--body-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-tools {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8eaed;
}

.category-tools-title {
    font-size: 0.85rem;
    color: #80868b;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: padding-left 0.3s;
}

.tool-link:hover {
    padding-left: 0.5rem;
}

/* ===== 工具展示區 ===== */
.tools-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--body-gray);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.tool-card {
    background: var(--card-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.tool-card > a {
    margin-top: auto;
}

.tool-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

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

.tool-emoji {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-emoji svg {
    width: 24px;
    height: 24px;
    stroke: var(--body-gray);
}

.tool-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading-black);
}

.tool-question {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--profit-gold);
}

.tool-question-label {
    font-size: 0.75rem;
    color: var(--body-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tool-question-text {
    color: var(--heading-black);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-logic {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-blue);
    flex-grow: 1;
}

.tool-logic-label {
    font-size: 0.75rem;
    color: var(--brand-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tool-logic-text {
    color: var(--heading-black);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-cta {
    display: block;
    width: 100%;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.tool-cta:hover {
    background: var(--hover-blue);
    transform: scale(0.98);
}

/* ===== Footer ===== */
footer {
    background: var(--heading-black);
    color: #e8eaed;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

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

.footer-disclosure {
    background: #2d2f31;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.disclosure-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--profit-gold);
}

.disclosure-content {
    color: #bdc1c6;
    line-height: 1.8;
    font-size: 0.95rem;
}

.disclosure-content p {
    margin-bottom: 1rem;
}

.disclosure-promises {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3c4043;
}

.disclosure-promises h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #e8eaed;
}

.promise-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.promise-item {
    color: #9aa0a6;
    padding-left: 1.5rem;
    position: relative;
}

.promise-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34a853;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3c4043;
    color: #9aa0a6;
    font-size: 0.9rem;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .categories {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
}
