﻿/* ==========================
   Design Tokens
============================= */
:root {
    --bg: #f1f3f6;
    --bg-accent: #e8eef5;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #5b6474;
    --line: #e2e8f0;
    --primary: #0f4c5c;
    --primary-dark: #0a3944;
    --accent: #f77f00;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

/* ==========================
   Reset / Base
============================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
}

/* ==========================
   Typography
============================= */
h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-family: "Sora", "Noto Sans TC", sans-serif;
}

p {
    margin: 10px 0;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 76, 92, 0.3);
    padding-bottom: 2px;
}

a:hover {
    text-decoration: underline;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.lead {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--text);
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* ==========================
   Utilities
============================= */
.hidden {
    display: none !important;
}

/* ==========================
   Components - Navigation
============================= */
.page-nav {
    margin-bottom: 14px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 92, 0.12);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb__link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: none;
}

.breadcrumb__link:hover {
    text-decoration: underline;
}

.breadcrumb__sep {
    color: #94a3b8;
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 600;
}
/* ==========================
   Layout
============================= */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 18px 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    padding: 26px 26px 30px;
    background: linear-gradient(140deg, #ffffff 0%, #f4f7fb 70%);
    border-radius: 26px;
    border: 1px solid #e5ebf3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-family: "Sora", "Noto Sans TC", sans-serif;
    font-size: 36px;
    margin: 6px 0 10px;
    letter-spacing: 0.5px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================
   Components - Form
============================= */
.field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.field label {
    font-weight: 600;
    font-size: 14px;
    color: #3a475a;
}

input[type="number"],
select {
    width: min(420px, 100%);
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input[type="number"]:focus,
select:focus {
    border-color: rgba(15, 76, 92, 0.6);
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

/* ==========================
   Components - Button
============================= */
.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

button,
.button {
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px rgba(15, 76, 92, 0.2);
    text-decoration: none;
    border-bottom: none;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

button:active,
.button:active {
    transform: translateY(0);
}

#demoBtn {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid rgba(15, 76, 92, 0.3);
    box-shadow: none;
}

#demoBtn:hover {
    background: rgba(15, 76, 92, 0.08);
}

/* ==========================
   Components - Footer
============================= */
.site-footer {
    margin-top: 40px;
    padding: 20px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 6px;
}

.footer-links a {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.footer-meta {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.2px;
}

/* ==========================
   Feature - Tool Card
============================= */
.tool-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border: 1px solid rgba(15, 76, 92, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f4c5c 0%, #4f8f9c 100%);
}

.tool-list > .tool-card:nth-child(2)::before {
    background: linear-gradient(180deg, #f77f00 0%, #ffb256 100%);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
    border-color: rgba(15, 76, 92, 0.24);
}

.tool-card__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.tool-card__desc {
    margin-top: 6px;
}

.tool-card--disabled {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.55);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: none;
}

.tool-card--disabled .tool-card__title {
    color: var(--muted);
}

.tool-card--disabled::before {
    background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
}

.tool-card--disabled:hover {
    transform: none;
    cursor: default;
    border-color: rgba(148, 163, 184, 0.55);
    box-shadow: none;
}

/* ==========================
   Feature - Home
============================= */
.home-section + .home-section {
    margin-top: 22px;
}

.tool-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.tool-card__body {
    flex: 1;
}

.tool-card__desc--tight {
    margin: 6px 0 0;
}

/* ==========================
   Animation
============================= */
@keyframes rise {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

    .tool-card {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 24px 14px 48px;
    }

    .hero {
        padding: 22px 18px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .btn-row {
        flex-direction: column;
    }

    button,
    .button {
        width: 100%;
    }

    input[type="number"],
    select {
        width: 100%;
    }

    .tool-card {
        flex-direction: column;
        align-items: stretch;
    }
}


