:root {
    --bg: #f3f7ff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --line: rgba(103, 132, 191, 0.12);
    --text: #222b45;
    --muted: #7c88a5;
    --blue: #2f6bff;
    --blue-soft: #eaf1ff;
    --green: #27b77b;
    --green-soft: #e8fbf3;
    --orange: #ff8c3a;
    --orange-soft: #fff1e6;
    --purple: #7b52ff;
    --purple-soft: #f1ebff;
    --shadow: 0 24px 60px rgba(61, 91, 153, 0.16);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(78, 123, 255, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(39, 183, 123, 0.12), transparent 18%),
        linear-gradient(180deg, #f9fbff 0%, #edf3ff 100%);
}

body {
    display: flex;
    justify-content: center;
    padding: 24px;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: 100%;
}

.phone-stage {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 100%;
    max-width: 420px;
    min-height: min(860px, calc(100vh - 48px));
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(238, 244, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 38px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.app-main {
    padding: 18px 16px 124px;
}

.page-main {
    animation: panel-fade 0.32s ease;
}

.hero-card,
.menu-card,
.info-card,
.article-card,
.page-content,
.form-card,
.faq-card,
.notice-item,
.stack-item {
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 30px rgba(69, 101, 165, 0.08);
}

.hero-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h2,
.hero-copy h1,
.section-header h2,
.article-header h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.08;
    font-weight: 900;
}

.hero-tag {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.hero-copy p:last-child,
.section-header p,
.form-card p,
.faq-card p,
.info-card p,
.notice-item p,
.stack-item p,
.article-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

.hero-banner {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 8px);
}

.menu-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.policy-grid {
    margin-top: 18px;
}

.policy-board {
    display: grid;
    gap: 0;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 30px rgba(69, 101, 165, 0.08);
    overflow: hidden;
}

.policy-board-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: transparent;
}

.policy-board-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6f9ff, #e9f1ff);
    flex: 0 0 52px;
}

.policy-board-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.policy-board-text strong {
    font-size: 20px;
    line-height: 1.35;
    margin: 0;
}

.policy-board-text small {
    color: var(--muted);
    font-size: 13px;
}

.menu-card.accent-orange {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 230, 0.96));
}

.menu-card.accent-purple {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 235, 255, 0.96));
}

.menu-icon,
.tabbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6f9ff, #e9f1ff);
    flex: 0 0 52px;
}

.menu-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-text strong,
.stack-item h3,
.info-card h3,
.notice-item h3,
.form-card h3,
.faq-card h3 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0;
}

.menu-text small {
    color: var(--muted);
    font-size: 13px;
}

.section-header,
.article-header {
    padding: 10px 6px 16px;
}

.page-top {
    display: grid;
    gap: 12px;
    padding: 8px 6px 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5c6a89;
    font-size: 14px;
    font-weight: 700;
}

.back-link::before {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 2px solid #1d2a47;
    border-bottom: 2px solid #1d2a47;
    transform: rotate(45deg);
}

.page-title {
    display: grid;
    gap: 8px;
}

.page-title h1,
.page-title h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
}

.page-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.section-header.compact {
    padding: 10px 6px 8px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
}

.section-badge.blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.section-badge.green {
    color: var(--green);
    background: var(--green-soft);
}

.section-badge.purple {
    color: var(--purple);
    background: var(--purple-soft);
}

.info-card,
.page-content,
.form-card,
.faq-card,
.notice-item,
.stack-item,
.article-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.info-card + .info-card,
.notice-item + .notice-item,
.page-content + .form-card,
.form-card + .faq-card {
    margin-top: 14px;
}

.page-content {
    background: linear-gradient(135deg, rgba(231, 253, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.cover-image {
    margin-top: 16px;
    width: 100%;
    border-radius: 18px;
}

.split-list {
    display: grid;
    gap: 18px;
}

.notice-list,
.stack-list {
    display: grid;
    gap: 14px;
}

.stack-item {
    width: 100%;
    text-align: left;
}

.empty-state {
    padding: 24px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--muted);
    text-align: center;
}

.stack-item small,
.meta-line {
    display: flex;
    gap: 10px;
    color: #97a4be;
    font-size: 12px;
    margin-top: 10px;
}

.meta-line {
    margin-top: 12px;
}

.article-content {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.article-detail-title {
    font-size: 31px;
    line-height: 1.18;
}

.rich-article {
    display: block;
}

.rich-article h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text);
}

.rich-article p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 15px;
}

.rich-article h3 + p {
    margin-top: 8px;
}

.rich-article p + h3,
.rich-article img + h3 {
    margin-top: 22px;
}

.rich-article img {
    display: block;
    width: 100%;
    margin-top: 16px;
    border-radius: 18px;
}

.form-card {
    display: grid;
    gap: 14px;
}

.purple-form {
    background: linear-gradient(180deg, rgba(248, 243, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.form-card label {
    display: grid;
    gap: 8px;
}

.form-card label span {
    font-size: 14px;
    color: #5f6d8c;
}

.form-card input,
.form-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: rgba(47, 107, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.08);
}

.text-count {
    margin-top: -6px;
    text-align: right;
    color: #98a5bd;
    font-size: 12px;
}

.primary-button {
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #25b97c, #1fa36d);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 20px rgba(37, 185, 124, 0.22);
}

.primary-button.purple {
    background: linear-gradient(90deg, #7b52ff, #925dff);
    box-shadow: 0 12px 20px rgba(123, 82, 255, 0.22);
}

.faq-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.9;
}

.purple-card {
    background: linear-gradient(180deg, rgba(248, 243, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(420px, 100vw);
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(140, 161, 205, 0.12);
    backdrop-filter: blur(18px);
    z-index: 40;
}

.tabbar-item {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #5d6a88;
    font-size: 11px;
    font-weight: 700;
}

.tabbar-item .tabbar-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: transparent;
}

.tabbar-item.active {
    color: var(--blue);
}

.tabbar-item.active .tabbar-icon {
    background: rgba(47, 107, 255, 0.1);
}

@keyframes panel-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .phone-frame {
        min-height: 100vh;
        max-width: none;
        border-radius: 0;
        border: 0;
    }

    .tabbar {
        width: 100vw;
    }
}

@media (max-width: 420px) {
    .app-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-copy h2,
    .hero-copy h1,
    .section-header h2,
    .article-header h2,
    .page-title h1,
    .page-title h2 {
        font-size: 30px;
    }

    .article-detail-title {
        font-size: 26px;
    }

    .menu-text strong,
    .stack-item h3,
    .info-card h3,
    .notice-item h3,
    .form-card h3,
    .faq-card h3 {
        font-size: 18px;
    }
}