@import url("https://fonts.googleapis.com/css2?family=Allura&display=swap");

* {
    box-sizing: border-box;
}

:root {
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;

    color: #5f4b55;
    background: #fff6fa;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right,
            #f9dbe7 0,
            transparent 32%),
        #fff6fa;
}

.site-header {
    border-bottom: 1px solid #efd2de;
    background: rgba(254, 254, 254, 0.88);
}

.header-content {
    display: flex;
    max-width: 1180px;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    color: #6f5360;
    font-size: 22px;
    font-weight: bold;
}

.site-description {
    color: #a07c8b;
    font-size: 14px;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    max-width: 180px;
    overflow: hidden;
    color: #7d6370;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #e8b8ca;
    border-radius: 999px;
    color: #855c6d;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.auth-button:hover {
    color: #ffffff;
    border-color: #d77da0;
    background: #d77da0;
}

[hidden] {
    display: none !important;
}

.home-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.welcome {
    max-width: 680px;
    margin-bottom: 36px;
}

.welcome-label {
    margin: 0 0 12px;
    color: #d287a4;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
}

.welcome h1 {
    margin: 0;
    color: #604751;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
}

.welcome>p:last-child {
    margin: 18px 0 0;
    color: #8c707c;
    font-size: 16px;
    line-height: 1.8;
}

.login-notice {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid #e7a9c0;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.96),
            rgba(250, 220, 232, 0.92));
    box-shadow:
        0 12px 30px rgba(190, 101, 137, 0.16);
}

.login-notice-icon {
    display: flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 23px;
    background: #f5cadb;
}

.login-notice-content {
    flex: 1;
}

.login-notice-content strong {
    display: block;
    margin-bottom: 5px;
    color: #694b58;
    font-size: 18px;
}

.login-notice-content p {
    margin: 0;
    color: #946f7e;
    font-size: 14px;
    line-height: 1.6;
}

.login-notice-button {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #d77da0;
    box-shadow:
        0 8px 18px rgba(194, 101, 138, 0.22);
}

.login-notice-button:hover {
    background: #c96e92;
}

.tool-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tool-card {
    position: relative;
    display: flex;
    min-height: 280px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    overflow: hidden;
    border: 1px solid #efd4df;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: #fefefe;
    box-shadow:
        0 12px 35px rgba(174, 112, 137, 0.1);
}

.tool-card.available {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tool-card.available:hover {
    border-color: #dda4ba;
    transform: translateY(-5px);
    box-shadow:
        0 18px 45px rgba(174, 112, 137, 0.18);
}

.tool-card.available:focus-visible {
    outline: 3px solid #edb9cd;
    outline-offset: 4px;
}

.tool-card.unavailable {
    color: #9e8c94;
    background: rgba(254, 254, 254, 0.62);
}

.tool-icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 27px;
    background:
        linear-gradient(135deg,
            #e9aec4,
            #d88eaa);
    box-shadow:
        0 9px 20px rgba(207, 126, 158, 0.24);
}

.unavailable .tool-icon {
    color: #ad919d;
    background: #f4e4ea;
    box-shadow: none;
}

.tool-status {
    display: inline-block;
    margin-bottom: 10px;
    color: #c36f91;
    font-size: 13px;
    font-weight: bold;
}

.unavailable .tool-status {
    color: #aa929c;
}

.tool-content h2 {
    margin: 0;
    color: #674c57;
    font-size: 22px;
}

.tool-content p {
    min-height: 58px;
    margin: 14px 0 24px;
    color: #896f79;
    font-size: 15px;
    line-height: 1.7;
}

.unavailable .tool-content h2,
.unavailable .tool-content p {
    color: #9e8c94;
}

.tool-action {
    color: #c76f92;
    font-size: 15px;
    font-weight: bold;
}

.unavailable .tool-action {
    color: #ad9ca3;
}

footer {
    padding: 24px;
    border-top: 1px solid #efd7e0;
    color: #a48692;
    text-align: center;
    background: rgba(254, 254, 254, 0.55);
}

footer p {
    margin: 0;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #a48692;
    text-underline-offset: 3px;
}

.privacy-main {
    width: min(100% - 40px, 820px);
    margin: 0 auto;
    padding: 56px 0 80px;
}

.privacy-card {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #efd2de;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(151, 103, 122, 0.1);
}

.privacy-card h1 {
    margin: 0 0 8px;
    color: #624b56;
    font-size: clamp(30px, 5vw, 42px);
}

.privacy-updated {
    margin: 0 0 32px;
    color: #a48692;
    font-size: 14px;
}

.privacy-card section + section {
    margin-top: 28px;
}

.privacy-card h2 {
    margin: 0 0 10px;
    color: #765966;
    font-size: 20px;
}

.privacy-card p,
.privacy-card li {
    line-height: 1.8;
}

.privacy-card ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.privacy-back {
    display: inline-block;
    margin-top: 34px;
    color: #c76f92;
    font-weight: bold;
    text-underline-offset: 4px;
}

@media (max-width: 850px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 240px;
    }
}

@media (max-width: 560px) {
    .header-content {
        min-height: 62px;
        padding: 0 18px;
    }

    .site-description {
        display: none;
    }

    .home-main {
        width: min(100% - 28px, 1180px);
        padding: 42px 0 60px;
    }

    .welcome {
        margin-bottom: 26px;
    }

    .welcome h1 {
        font-size: 34px;
    }

    .tool-card {
        min-height: 220px;
        padding: 22px;
        border-radius: 16px;
    }

    .tool-icon {
        margin-bottom: 28px;
    }
}

/* 英文手写副标题 */
.welcome>p.english-signature {
    margin: 10px 0 0;
    color: #c77d9a;
    font-family: "Allura", cursive;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
}

@media (max-width: 560px) {
    .login-notice {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .login-notice-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        font-size: 20px;
    }

    .login-notice-content {
        min-width: calc(100% - 62px);
    }

    .login-notice-button {
        width: 100%;
    }
}

.tool-card.locked {
    cursor: not-allowed;
    opacity: 0.65;
    filter: grayscale(0.35);
    box-shadow: none;
}

.tool-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.tool-card.locked .tool-icon {
    background: #eadfe4;
}

.tool-card.locked .tool-status,
.tool-card.locked .tool-action {
    color: #9a7f8a;
}
