﻿.page-content {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: calc(100vh - 48px - 42px);
    max-height: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--vbs) transparent;
}

.stage-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vbs);
    margin-bottom: 1rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--vbs);
}

.section-lead {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    margin-top: -0.35rem;
    margin-bottom: 1rem;
}

.notice-box,
.info-card,
.receipt-card,
.result-card,
.panel-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
    backdrop-filter: blur(8px);
}

.notice-box {
    border-color: rgba(238,17,102,0.24);
}

.notice-box p,
.notice-box li,
.info-card p,
.panel-box p {
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
    font-size: 0.9rem;
}

.notice-list,
.mini-list,
.bullet-list {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
}

.info-grid,
.notice-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-card h3,
.notice-card h3,
.upload-card-title,
.hero-chip strong {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.45rem;
}

.notice-card {
    background: linear-gradient(135deg, rgba(238,17,102,0.16), rgba(255,255,255,0.03));
    border: 1px solid rgba(238,17,102,0.22);
    border-radius: 12px;
    padding: 1.05rem 1.1rem;
}

.notice-card p,
.notice-card li {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 1.75;
}

.hero-band {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-main,
.hero-side {
    background: linear-gradient(140deg, rgba(238,17,102,0.16), rgba(255,255,255,0.04));
    border: 1px solid rgba(238,17,102,0.22);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    position: relative;
    overflow: hidden;
}

.hero-main::after,
.hero-side::after {
    content: '';
    position: absolute;
    inset: auto -20% -30% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238,17,102,0.22), transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.hero-main h2,
.hero-side h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.hero-main p,
.hero-side p,
.hero-side li {
    color: rgba(255,255,255,0.8);
    line-height: 1.85;
    font-size: 0.92rem;
}

.hero-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.hero-chip {
    min-width: 140px;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(12,12,20,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-chip span {
    display: block;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.2rem;
}

.hero-chip strong {
    display: block;
    margin-bottom: 0;
}

.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.86rem;
    transition: color 0.25s;
}

.step-line {
    width: 48px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.6rem;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    font-weight: 700;
}

.step.active {
    color: #fff;
}

.step.active .step-num {
    background: var(--vbs);
    border-color: var(--vbs);
}

.step.done {
    color: rgba(255,255,255,0.72);
}

.step.done .step-num {
    background: rgba(76,223,138,0.22);
    border-color: rgba(76,223,138,0.5);
    color: #4cdf8a;
}

.stage-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.required {
    color: var(--vbs);
}

.form-group input,
.form-group select,
.form-group textarea,
.query-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.72rem 0.85rem;
    font-size: 0.92rem;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.query-input:focus {
    border-color: var(--vbs);
    background: rgba(255,255,255,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 92px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bbbbbb' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}

.form-group select option {
    background: #181822;
}

.form-tip,
.inline-tip,
.upload-help {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

.radio-group,
.switch-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.radio-card {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.radio-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.radio-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    transition: 0.2s;
}

.radio-card input:checked + span {
    border-color: var(--vbs);
    color: #fff;
    background: rgba(238,17,102,0.18);
}

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

.drop-zone {
    border: 2px dashed rgba(238,17,102,0.35);
    border-radius: 12px;
    padding: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    background: rgba(255,255,255,0.03);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--vbs);
    background: rgba(238,17,102,0.08);
    transform: translateY(-1px);
}

.drop-text {
    color: rgba(255,255,255,0.84);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.drop-hint {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(238,17,102,0.8), rgba(255,255,255,0.75));
    transition: width 0.2s ease;
}

.progress-text {
    min-width: 52px;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.64);
}

.file-list,
.preview-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.file-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.file-main strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    word-break: break-all;
}

.file-main span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.file-status {
    align-self: center;
    font-size: 0.8rem;
    white-space: nowrap;
}

.status-waiting {
    color: #ffce54;
}

.status-uploading {
    color: #8fd6ff;
}

.status-success {
    color: #4cdf8a;
}

.status-error {
    color: #ff7a7a;
}

.preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.preview-card {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.preview-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.preview-card .preview-meta {
    padding: 0.7rem 0.8rem;
}

.preview-card strong {
    display: block;
    font-size: 0.84rem;
    color: #fff;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-card span {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
}

.btn-submit,
.btn-secondary {
    border: none;
    border-radius: 8px;
    padding: 0.72rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.12s;
}

.btn-submit {
    background: var(--vbs);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-submit:hover,
.btn-secondary:hover {
    opacity: 0.88;
}

.btn-submit:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.btn-submit:disabled,
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.action-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.upload-status {
    margin-top: 0.7rem;
    font-size: 0.85rem;
}

.receipt-label,
.receipt-tip {
    color: rgba(255,255,255,0.56);
}

.receipt-code {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--vbs);
    margin: 0.9rem 0;
    user-select: all;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2.3rem 0;
}

.query-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.88rem;
}

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

.result-label {
    color: rgba(255,255,255,0.5);
    min-width: 6em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.pending {
    background: rgba(255,180,0,0.14);
    color: #ffcb59;
}

.status-badge.approved {
    background: rgba(76,223,138,0.16);
    color: #4cdf8a;
}

.status-badge.rejected {
    background: rgba(255,112,112,0.14);
    color: #ff8b8b;
}

.query-empty,
.empty-tip {
    text-align: center;
    color: rgba(255,255,255,0.55);
    padding: 1.2rem 0;
}

.closed-notice {
    text-align: center;
    padding: 6rem 1rem;
}

.closed-notice h1 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.closed-notice p {
    display: inline-block;
    padding: 1rem 1.6rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20,20,30,0.95);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 240;
    max-width: min(90vw, 420px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(76,223,138,0.5);
}

.toast.error {
    border-color: rgba(255,112,112,0.5);
}

@media (max-width: 768px) {
    .page-content {
        padding: 4.2rem 1.35rem 2rem;
        min-height: calc(100dvh - 48px - 42px);
        max-height: none;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .hero-band,
    .info-grid,
    .notice-grid,
    .metric-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-bar {
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: flex-start;
    }

    .step-line {
        width: 20px;
        margin: 0 0.2rem;
    }

    .step {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .query-row,
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit,
    .btn-secondary {
        width: 100%;
    }

    .result-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .drop-zone {
        padding: 1.25rem 1rem;
    }

    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-code {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}
