* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Noto Sans TC",
        "Microsoft JhengHei",
        Arial,
        sans-serif;

    background: #f7f8fa;
    color: #202124;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* Header */

.topbar {
    height: 76px;

    background: #ffffff;

    border-bottom: 1px solid #e8eaed;
}

.topbar-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #202124;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 2px;

    font-size: 12px;

    color: #777b82;
}

.back-link {
    padding: 10px 14px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    color: #5f6368;
}

.back-link:hover {
    background: #f1f3f4;
}


/* Hero */

.hero {
    padding: 82px 0 64px;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 0, 0, 0.035),
            transparent 35%
        ),
        #ffffff;

    border-bottom: 1px solid #eceef1;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    display: inline-flex;

    margin-bottom: 16px;

    padding: 6px 10px;

    border-radius: 999px;

    background: #f1f3f4;

    color: #5f6368;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.hero h1,
.tool-header h1 {
    margin: 0;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;

    letter-spacing: -1.8px;
}

.hero p {
    max-width: 620px;

    margin: 20px 0 0;

    font-size: 17px;
    line-height: 1.8;

    color: #666b72;
}


/* Tools */

.tools-section {
    padding: 58px 0 90px;
}

.section-heading {
    margin-bottom: 26px;

    display: flex;
    align-items: end;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0;

    font-size: 26px;
}

.section-heading p {
    margin: 8px 0 0;

    color: #777b82;

    font-size: 14px;
}

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.tool-card {
    min-height: 150px;

    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #e6e8eb;
    border-radius: 18px;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.tool-card:hover {
    transform: translateY(-2px);

    border-color: #ced2d8;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.07);
}

.tool-icon {
    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #f2f3f5;

    font-size: 25px;
    font-weight: 700;
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    margin: 2px 0 9px;

    font-size: 19px;
}

.tool-content p {
    margin: 0;

    color: #6c7178;

    font-size: 14px;
    line-height: 1.75;
}

.tool-arrow {
    padding-top: 5px;

    color: #9aa0a6;

    font-size: 22px;
}


/* Tool page */

.tool-page {
    padding: 62px 0 90px;
}

.tool-header {
    max-width: 760px;

    margin-bottom: 34px;
}

.tool-header h1 {
    font-size: 42px;
}

.tool-header p {
    margin: 16px 0 0;

    color: #6c7178;

    font-size: 16px;
    line-height: 1.7;
}

.tool-workspace {
    min-height: 430px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background: #ffffff;

    border: 2px dashed #d8dbe0;
    border-radius: 20px;

    text-align: center;
}

.placeholder-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 20px;

    background: #f1f3f4;

    font-weight: 800;
}

.tool-workspace h2 {
    margin: 0;

    font-size: 22px;
}

.tool-workspace p {
    margin: 10px 0 0;

    color: #8a8f96;
}


/* Footer */

footer {
    padding: 24px 0;

    background: #ffffff;

    border-top: 1px solid #e8eaed;
}

.footer-inner {
    display: flex;
    justify-content: space-between;

    color: #8a8f96;

    font-size: 12px;
}


/* Mobile */

@media (max-width: 760px) {

    .container {
        width: min(
            100% - 24px,
            1180px
        );
    }

    .topbar {
        height: 68px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        padding: 54px 0 44px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .tools-section {
        padding: 38px 0 60px;
    }

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

    .tool-card {
        min-height: 130px;

        padding: 20px;
    }

    .tool-page {
        padding: 40px 0 60px;
    }

    .tool-header h1 {
        font-size: 34px;
    }

    .tool-workspace {
        min-height: 330px;

        padding: 28px 16px;
    }

    .footer-inner {
        gap: 10px;

        flex-direction: column;
    }
}
