:root {
    --brand: #19c15f;
    --brand-dark: #0c9b45;
    --bg: #f4f6f8;
    --text: #1f2937;
    --muted: #7a8798;
    --line: #e6eaef;
    --danger: #ff5b45;
    --warning: #ff9800;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #eef4f1 0%, #f9fafb 30%, #f4f6f8 100%);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

[hidden] {
    display: none !important;
}

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

.mobile-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 84px;
}

.topbar {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 24px 16px 18px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.page-content {
    padding: 16px 14px 32px;
}

.hero-banner {
    min-height: 320px;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at 70% 20%, #c6ff33 0 12%, transparent 12.5%),
        radial-gradient(circle at 16% 78%, #9eed3d 0 10%, transparent 10.5%),
        radial-gradient(circle at 82% 82%, #d9ff18 0 9%, transparent 9.5%),
        radial-gradient(circle at 48% 38%, #1e7cf8 0 22%, #1563de 48%, transparent 49%),
        radial-gradient(circle at 50% 40%, #47b0ff 0 14%, transparent 37%),
        linear-gradient(135deg, #47bfff, #1272f7 70%);
    color: #fff;
    padding: 42px 28px;
    display: flex;
    align-items: center;
    margin: -16px -14px 16px;
    overflow: hidden;
}

.hero-copy h2,
.hero-copy p {
    margin: 0;
}

.hero-copy h2 {
    font-size: 30px;
    line-height: 1.35;
}

.hero-copy p {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
}

.hero-copy span {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 34px;
    background: #ffe139;
    color: #187de8;
    font-size: 28px;
    font-weight: 700;
}

.card-section,
.company-card,
.order-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(27, 39, 51, 0.08);
    padding: 18px;
    margin-bottom: 16px;
}

.section-head,
.title-line,
.order-head,
.detail-row,
.company-footer,
.price-row {
    display: flex;
    align-items: center;
}

.between,
.detail-row,
.company-footer,
.price-row,
.order-head {
    justify-content: space-between;
}

.title-line {
    gap: 10px;
}

.title-line h3,
.section-head h3,
.company-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(25, 193, 95, 0.12);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.icon-warn {
    color: var(--warning);
    background: rgba(255, 152, 0, 0.12);
}

.stats,
.muted,
.helper-text,
.link-more {
    color: var(--muted);
}

.search-input,
.text-input {
    width: 100%;
    border: 1px solid var(--line);
    background: #f8fafb;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 16px;
    margin: 14px 0;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-light {
    background: #f0f4f8;
    color: var(--text);
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.self-service-card .helper-text,
.self-service-tip .helper-text {
    margin: 0 0 14px;
    line-height: 1.7;
}

.tag {
    border: 1px solid var(--brand);
    color: var(--brand);
    border-radius: 8px;
    padding: 4px 10px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 14px 0;
}

.company-grid span,
.detail-row span,
.field-label {
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.detail-row {
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    text-align: right;
    font-size: 15px;
}

.multiline {
    max-width: 68%;
    text-align: left;
    white-space: normal;
}

.service-header {
    border-left: 4px solid var(--service-color, var(--brand));
    padding-left: 12px;
    margin-bottom: 16px;
}

.service-header h3 {
    margin: 0;
}

.service-description {
    line-height: 1.75;
}

.service-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.service-submit {
    text-align: left;
    border: 1px solid rgba(25, 193, 95, 0.18);
    background: rgba(25, 193, 95, 0.06);
    padding: 16px;
    border-radius: 16px;
}

.service-submit span,
.service-submit strong {
    display: block;
}

.service-submit strong {
    margin-top: 8px;
    color: var(--brand);
}

.service-image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 14px;
}

.price-text,
.status-unpaid {
    color: var(--danger);
}

.status-paid {
    color: var(--brand);
}

.status-refunded {
    color: #8f56ff;
}

.tab-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 16px;
    padding: 10px 8px;
    margin-bottom: 16px;
}

.tab-strip a {
    text-align: center;
    padding: 10px 0;
    color: var(--muted);
    position: relative;
}

.tab-strip a.active {
    color: var(--text);
    font-weight: 700;
}

.tab-strip a.active::after {
    content: '';
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: -2px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand);
}

.order-card {
    display: block;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(480px, 100%);
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}

.bottom-nav a,
.nav-button {
    text-align: center;
    border: none;
    background: transparent;
    color: #8d96a0;
    font-size: 16px;
}

.bottom-nav .active {
    color: var(--brand);
    font-weight: 700;
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 30;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
}

.modal-actions,
.service-list {
    display: grid;
    gap: 12px;
}

.service-link {
    border: 1px solid rgba(25, 193, 95, 0.22);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-stack {
    padding: 12px 14px 0;
}

.message {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

.message.error {
    background: #fff1f1;
    color: #d63031;
}

.message.success {
    background: #ecfff3;
    color: #1e9f57;
}

.message.info {
    background: #eef7ff;
    color: #2271b1;
}

.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 24px 18px;
}

@media (max-width: 420px) {
    .hero-copy h2,
    .hero-copy p,
    .hero-copy span {
        font-size: 24px;
    }

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

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

    .detail-row strong,
    .multiline {
        max-width: 100%;
        text-align: left;
    }
}