* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    min-height: 100vh;
    background: #f7f8fa;
}

.nav-page {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Marquee */
.nav-marquee {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.nav-marquee-inner {
    display: inline-block;
    padding-left: 100%;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    animation: navMarquee 16s linear infinite;
}

@keyframes navMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Header */
.nav-header {
    position: relative;
    padding: 48px 24px 56px;
    text-align: center;
    overflow: visible;
}

.nav-header::after {
    content: '';
    position: absolute;
    bottom: -24px;
    height: 48px;
    background: #f7f8fa;
    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.nav-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.nav-ornament-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.nav-ornament-icon {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.nav-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.nav-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Content card */
.nav-content {
    position: relative;
    z-index: 2;
    margin: -28px 16px 0;
    flex: 1;
}

/* Button area */
.nav-btn-area {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 24px 20px;
    margin-bottom: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    text-decoration: none;
    gap: 14px;
}

.nav-btn:last-child { margin-bottom: 0; }

.nav-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.nav-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-btn-text {
    flex: 1;
    text-align: left;
}

.nav-btn-title { font-size: 16px; font-weight: 500; }
.nav-btn-subtitle { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.nav-btn-arrow {
    font-size: 14px;
    opacity: 0.6;
}

/* Closed message */
.nav-closed-msg {
    text-align: center;
    padding: 40px 20px;
}

.nav-closed-msg i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 12px;
}

.nav-closed-msg h3 {
    font-size: 16px;
    color: #999;
    font-weight: 500;
    margin-bottom: 6px;
}

.nav-closed-msg p {
    font-size: 13px;
    color: #bbb;
}

/* Records section */
.nav-records {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 16px;
}

.nav-records-card {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nav-records-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-records-title i {
    font-size: 14px;
    opacity: 0.5;
}

.nav-records-count {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Status bar (green success header) */
.nav-record-status-bar {
    background: linear-gradient(135deg, #f0faf4, #e8f5ec);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-record-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-record-status-icon i {
    color: #fff;
    font-size: 15px;
}

.nav-record-status-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.nav-record-status-time {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* Detail rows (separator style) */
.nav-record-detail {
    padding: 0 20px;
}

.nav-record-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
}

.nav-record-detail-row-border {
    border-bottom: 1px solid #f3f3f3;
}

.nav-record-detail-label {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
    width: 30%;
}

.nav-record-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* Actions bar (confirm link + pay button) */
.nav-record-actions {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-record-confirm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a73e8;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.nav-record-confirm-link:hover {
    text-decoration: underline;
}

/* Paid stamp */
.nav-paid-stamp {
    position: absolute;
    right: 22px;
    bottom: 22px;
    padding: 3px 12px;
    border: 2.5px solid rgba(255, 0, 0, 0.5);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 0, 0, 0.5);
    transform: rotate(-8deg);
    z-index: 5;
    pointer-events: none;
    letter-spacing: 2px;
}

.nav-record-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-record-pay-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nav-record-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nav-record-pay-btn i {
    font-size: 12px;
}

.nav-record-paid-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    background: #f0faf4;
    color: #07c160;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.nav-record-paid-tag i {
    font-size: 12px;
}

.nav-records-empty {
    text-align: center;
    padding: 24px 0;
    color: #ccc;
    font-size: 13px;
}

.nav-records-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

/* Form list card */
.nav-formlist {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.nav-formlist-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-formlist-header i {
    font-size: 14px;
    opacity: 0.5;
}

.nav-formlist-body {
    padding: 0 20px;
}

.nav-formlist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.nav-formlist-row-border {
    border-bottom: 1px solid #f3f3f3;
}

.nav-formlist-info {
    flex: 1;
    min-width: 0;
}

.nav-formlist-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-formlist-time {
    font-size: 12px;
    color: #bbb;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-formlist-switch-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    font-size: 12px;
    color: #1a73e8;
    background: #f0f6ff;
    border: 1px solid #d4e4fa;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-formlist-switch-btn:hover {
    background: #e0edff;
    border-color: #b8d4f8;
}

.nav-formlist-closed {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background: #ef4444;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.6;
}

/* Phone bar */
.nav-phone-bar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-phone-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.nav-phone-info i {
    color: #bbb;
    font-size: 16px;
}

.nav-phone-number {
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-switch-btn {
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
}

.nav-switch-btn:hover {
    border-color: #ccc;
    color: #555;
}

/* Footer */
.nav-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #bbb;
}

/* Error page */
.error-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.error-page i { font-size: 48px; color: #ddd; margin-bottom: 16px; }
.error-page h2 { font-size: 18px; color: #666; font-weight: 500; margin-bottom: 8px; }
.error-page p { font-size: 13px; color: #999; }

/* Loading */
.nav-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 14px;
}

.nav-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}
