* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #172033;
    background: #f4f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.mobile-page {
    min-height: 100vh;
    background: #f5f7fa;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #173b58;
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(10, 35, 55, .42) 0%, rgba(10, 35, 55, .08) 42%, rgba(10, 35, 55, .7) 100%),
        url("/static/images/hero-station.png") center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    padding: 42px 22px 34px;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: 13px;
    backdrop-filter: blur(10px);
    margin-bottom: 100px;
}

.hero h1 {
    /* max-width: 330px; */
    margin: 18px 0 40px;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.hero p {
    /* max-width: 330px; */
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.75;
    text-indent: 2em;
    text-align: left;
}

.hero-cta {
    position: relative;
    width: min(82vw, 286px);
    min-height: 58px;
    margin: 54px auto 0;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    background: linear-gradient(135deg, #e6403b 0%, #c91f1a 55%, #f08b36 100%);
    box-shadow: 0 16px 34px rgba(171, 34, 28, .36), inset 0 1px 0 rgba(255, 255, 255, .35);
    font-size: 18px;
}

.hero-cta::after {
    margin-left: 10px;
    content: "›";
    font-size: 26px;
    line-height: 1;
}

.hero-actions {
    display: grid;
    gap: 14px;
}

.service-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.service-points span {
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    background: rgba(8, 22, 35, .34);
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.primary-btn {
    color: #fff;
    background: #d83732;
    box-shadow: 0 12px 28px rgba(216, 55, 50, .32);
}

.secondary-btn {
    color: #24455e;
    background: #e7edf2;
}

.danger-btn {
    color: #fff;
    background: #26384b;
}

.page-shell {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid #edf0f2;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.back-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef2f5;
    color: #26384b;
    line-height: 34px;
    text-align: center;
    font-size: 22px;
}

.topbar-title {
    font-size: 17px;
    font-weight: 800;
}

.form-panel,
.success-panel {
    padding: 22px 18px 15px;
}

.hint-band {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #eef6fb;
    color: #315269;
    font-size: 14px;
    line-height: 1.65;
}

.error-box {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fff0ef;
    color: #b42318;
    font-size: 14px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label,
.field-title {
    color: #23364d;
    font-size: 15px;
    font-weight: 700;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea,
.login-card input {
    width: 100%;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font-size: 16px;
    outline: none;
}

.field input[type="text"],
.field input[type="tel"],
.login-card input {
    height: 48px;
    padding: 0 13px;
}

.field textarea {
    min-height: 138px;
    padding: 12px 13px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.login-card input:focus {
    border-color: #4a8fbd;
    box-shadow: 0 0 0 3px rgba(74, 143, 189, .15);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f4f7f9;
}

.switch-copy strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.switch-copy span,
.field-help {
    color: #667789;
    font-size: 13px;
    line-height: 1.45;
}

.toggle input {
    position: absolute;
    opacity: 0;
}

.toggle span {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #b9c3cd;
    transition: .2s;
}

.toggle span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: .2s;
}

.toggle input:checked + span {
    background: #d83732;
}

.toggle input:checked + span::after {
    transform: translateX(22px);
}

.camera-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px dashed #aebbc7;
    border-radius: 8px;
    background: #fafcfd;
}

.camera-box > :not(.camera-btn) {
    grid-column: 1 / -1;
}

.camera-btn {
    display: inline-flex;
    min-height: 46px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.camera-btn[data-open-camera] {
    background: #2f6fed;
    box-shadow: 0 12px 28px rgba(47, 111, 237, .22);
}

.camera-btn[data-pick-media] {
    background: #e7edf2;
    color: #24455e;
}

.camera-panel {
    display: grid;
    gap: 12px;
    margin: 6px 0 20px;
    padding: 12px;
    border-radius: 8px;
    background: #152331;
    color: #fff;
}

.camera-panel[hidden] {
    display: none;
}

.camera-view {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #050b12;
    object-fit: cover;
}

.camera-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.camera-tools button {
    min-width: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef3;
    aspect-ratio: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-item button {
    position: absolute;
    right: 5px;
    bottom: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 24px;
}

.video-result {
    display: grid;
    gap: 10px;
}

.video-result video {
    width: 100%;
    border-radius: 8px;
    background: #050b12;
}

.submit-area {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
}

.detail-actions .danger-btn,
.detail-actions .secondary-btn {
    min-width: 112px;
    width: auto;
}

.success-panel {
    display: grid;
    min-height: calc(100vh - 56px);
    place-items: center;
    text-align: center;
}

.success-panel h1 {
    margin: 0 0 10px;
    font-size: 28px;
}

.success-panel p {
    margin: 0 0 24px;
    color: #617386;
    line-height: 1.7;
}

.admin-body {
    min-height: 100vh;
    background: #eef2f5;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #1d2b3a;
    color: #fff;
}

.admin-header h1 {
    margin: 0;
    font-size: 18px;
}

.admin-main {
    width: min(1120px, calc(100% - 32px));
    margin: 22px auto;
}

.table-wrap,
.detail-wrap,
.login-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 38, 56, .08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f2;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    color: #607184;
    background: #f8fafb;
    font-weight: 700;
}

.table-action {
    display: inline-flex;
    min-width: 62px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #24455e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.status {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff5df;
    color: #8a5b00;
    font-size: 12px;
}

.status.replied {
    background: #e8f6ee;
    color: #1d6a3b;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 38, 56, .08);
}

.pagination-summary {
    margin: 0;
    color: #607184;
    font-size: 14px;
}

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

.page-link {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #24455e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.page-link.current {
    border-color: #24455e;
    background: #24455e;
    color: #fff;
}

.page-link.disabled {
    cursor: not-allowed;
    opacity: .5;
}

.detail-wrap {
    padding: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 18px;
    margin-bottom: 22px;
    font-size: 15px;
}

.detail-grid dt {
    color: #667789;
}

.detail-grid dd {
    margin: 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 22px;
}

.media-grid img,
.detail-wrap video {
    width: 100%;
    border-radius: 8px;
    background: #eef2f5;
}

.reply-form textarea {
    width: 100%;
    min-height: 130px;
    padding: 12px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    font-size: 15px;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
    background: #1d2b3a;
}

.login-card {
    width: min(100%, 390px);
    padding: 26px;
}

.login-card h1 {
    margin: 0 0 22px;
    font-size: 22px;
}

@media (max-width: 680px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .admin-table {
        min-width: 760px;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
