:root {
    --primary-color: #FFC300;
    --primary-dark: #E6A800;
    --primary-light: #FFE082;
    --primary-bg: #FFF8E1;
    --success-color: #10b981;
    --error-color: #ef4444;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --bg-gradient-start: #FFF8E1;
    --bg-gradient-end: #FFF3CD;
    --bg-gradient-mid: #FFECB3;
    --card-bg: #ffffff;
    --card-bg-hover: #FFFDF7;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e8e0d0;
    --border-light: #f5f0e6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 195, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 160, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 224, 130, 0.08) 0%, transparent 70%);
    animation: pulse-slow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.container {
    width: 100%;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.main-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 195, 0, 0.5);
}

.header-icon svg {
    color: #5D4037;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 22px;
    font-weight: 700;
    color: #4E342E;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.header-content .subtitle {
    font-size: 14px;
    color: rgba(78, 52, 46, 0.7);
    font-weight: 400;
}

.warning-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 18px 20px;
    margin: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #fcd34d;
    position: relative;
    overflow: hidden;
}

.warning-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.warning-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
}

.warning-text {
    flex: 1;
}

.warning-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    display: block;
    margin-bottom: 4px;
}

.warning-desc {
    font-size: 13px;
    color: #b45309;
    line-height: 1.5;
}

.form-section,
.query-section {
    padding: 0 28px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 0 2px 2px 0;
}

.section-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.query-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--error-color);
    margin-left: auto;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    overflow: hidden;
}

.contract-form {
    width: 100%;
    overflow-x: hidden;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.required-mark {
    color: var(--error-color);
    font-weight: 700;
    font-size: 13px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafafa;
    color: var(--text-primary);
    position: relative;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.25);
}

.form-input:not(:placeholder-shown):not(:focus):invalid,
.form-select:not(:focus):invalid {
    border-color: var(--error-color);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.form-select:hover {
    background-color: #ffffff;
}

.date-input {
    cursor: pointer;
    color-scheme: light;
    box-sizing: border-box;
    max-width: 100%;
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.date-input:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #4E342E;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(230, 168, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    box-shadow: 0 8px 28px rgba(230, 168, 0, 0.5);
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    flex-shrink: 0;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(78, 52, 46, 0.2);
    border-top-color: #5D4037;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(78, 52, 46, 0.2);
    border-top-color: #5D4037;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message-box {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.3s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 28px 0;
}

.query-form {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.query-input-wrapper {
    flex: 1;
    position: relative;
}

.query-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafafa;
    color: var(--text-primary);
}

.query-input::placeholder {
    color: var(--text-muted);
}

.query-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.25);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.query-input:focus + .input-icon {
    color: var(--primary-color);
}

.query-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #4E342E;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(230, 168, 0, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.query-btn:hover:not(:disabled) {
    box-shadow: 0 8px 28px rgba(230, 168, 0, 0.5);
    transform: translateY(-1px);
}

.query-btn:active:not(:disabled) {
    transform: translateY(0);
}

.query-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.query-result {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-align: center;
    margin-bottom: 18px;
    animation: fade-in-up 0.3s ease;
}

.query-result.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.query-result.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.query-result.info {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #5D4037;
    border: 1px solid #ffe082;
}

.records-container {
    animation: fade-in-up 0.3s ease;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.record-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.record-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.record-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.record-index {
    font-size: 14px;
    font-weight: 700;
    color: #5D4037;
    background: rgba(255, 195, 0, 0.18);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-index::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.record-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.record-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.record-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.record-row .label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-row .label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
    margin-left: 8px;
}

.record-row .value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
    padding-left: 4px;
}

.record-row .value.status-success {
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.record-row .value.status-success::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
}

.record-row .value.status-error {
    color: var(--error-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.record-row .value.status-error::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--error-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    animation: status-pulse 2s ease-in-out infinite;
}

.record-row .value.status-info {
    color: var(--info-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.record-row .value.status-info::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--info-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.record-row .value.status-warning {
    color: var(--warning-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.record-row .value.status-warning::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--warning-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.footer {
    padding: 24px 28px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 18px;
    background: linear-gradient(180deg, var(--card-bg-hover) 0%, var(--card-bg) 100%);
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer .copyright {
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 680px) {
    body {
        padding: 10px;
        min-height: calc(100vh - 20px);
        align-items: flex-start;
    }

    .container {
        max-width: 100%;
    }

    .main-card {
        border-radius: var(--radius-lg);
    }

    .card-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .header-icon {
        width: 44px;
        height: 44px;
    }

    .header-icon svg {
        width: 22px;
        height: 22px;
    }

    .header-content h1 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .header-content .subtitle {
        font-size: 12px;
    }

    .warning-banner {
        margin: 14px;
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }

    .warning-icon {
        align-self: flex-start;
        width: 24px;
        height: 24px;
    }

    .warning-icon svg {
        width: 16px;
        height: 16px;
    }

    .warning-title {
        font-size: 13px;
    }

    .warning-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .form-section,
    .query-section {
        padding: 0 14px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 16px;
        padding-left: 8px;
    }

    .section-icon {
        width: 16px;
        height: 16px;
    }

    .query-hint {
        font-size: 10px;
        padding: 3px 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        margin-bottom: 8px;
    }

    .label-text {
        font-size: 13px;
    }

    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 14px;
        min-width: 0;
    }

    .date-input {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-select {
        background-position: right 12px center;
        padding-right: 36px;
    }

    .submit-btn {
        padding: 14px 18px;
        font-size: 14px;
        margin-top: 8px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }

    .message-box {
        padding: 12px 14px;
        font-size: 13px;
        margin-top: 14px;
    }

    .divider {
        margin: 20px 0;
    }

    .query-form {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
    }

    .query-input-wrapper {
        width: 100%;
    }

    .query-input {
        padding: 14px 14px 14px 56px;
        font-size: 16px;
    }

    .input-icon {
        left: 14px;
        width: 20px;
        height: 20px;
    }

    .query-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .query-result {
        padding: 12px 14px;
        font-size: 12px;
        margin-bottom: 14px;
    }

    .record-item {
        padding: 16px;
        margin: 0 -14px;
        border-radius: 12px;
        border: none;
        background: linear-gradient(145deg, #ffffff 0%, #FFFDF7 100%);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        position: relative;
    }

    .record-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
        border-radius: 12px 0 0 12px;
    }

    .record-item:first-of-type {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .record-item:last-of-type {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .record-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 14px;
        border-bottom: 2px solid #f5f0e6;
        position: relative;
    }

    .record-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
        border-radius: 2px;
    }

    .record-index {
        font-size: 14px;
        padding: 6px 14px;
        flex-shrink: 0;
        font-weight: 700;
        background: linear-gradient(135deg, rgba(255, 195, 0, 0.22) 0%, rgba(255, 195, 0, 0.1) 100%);
        border-radius: 20px;
        box-shadow: 0 1px 3px rgba(255, 195, 0, 0.25);
    }

    .record-time {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .record-body {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .record-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
        background: linear-gradient(145deg, #FFFDF7 0%, #FFF8E1 100%);
        border-radius: 8px;
        border: 1px solid #f0e8d0;
        transition: all 0.2s ease;
    }

    .record-row:hover {
        background: linear-gradient(145deg, #FFF8E1 0%, #FFECB3 100%);
        border-color: #ffe082;
        box-shadow: 0 1px 4px rgba(255, 195, 0, 0.15);
        transform: translateY(-1px);
    }

    .record-row .label {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 600;
        letter-spacing: 0.3px;
        text-transform: none;
    }

    .record-row .label::before {
        content: none;
    }

    .record-row .label::after {
        display: none;
    }

    .record-row .value {
        font-size: 14px;
        color: var(--text-primary);
        font-weight: 700;
        text-align: left;
        padding-left: 0;
        word-break: break-word;
        line-height: 1.3;
    }

    .footer {
        padding: 16px 14px;
        margin-top: 14px;
    }

    .footer p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0;
    }

    body {
        padding: 0;
        background: #FFF8E1;
    }

    .main-card {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .card-header {
        padding: 18px;
        border-radius: 0;
    }

    .warning-banner {
        margin: 10px;
        padding: 10px 12px;
    }

    .form-section,
    .query-section {
        padding: 0 10px;
    }

    .section-title {
        font-size: 14px;
    }

    .form-input,
    .form-select {
        padding: 11px 12px;
        font-size: 16px;
        min-width: 0;
    }

    .form-select {
        padding-right: 32px;
        background-position: right 10px center;
    }

    .date-input {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .submit-btn {
        padding: 13px 16px;
        font-size: 15px;
    }

    .query-input {
        padding: 14px 14px 14px 56px;
        font-size: 16px;
    }

    .query-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .record-item {
        margin: 0 -10px;
        padding: 14px;
    }

    .record-body {
        gap: 8px;
    }

    .record-row .value {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .header-content h1 {
        font-size: 16px;
    }

    .header-content .subtitle {
        font-size: 11px;
    }

    .warning-title {
        font-size: 12px;
    }

    .warning-desc {
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .label-text {
        font-size: 12px;
    }

    .submit-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .query-hint {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 320px) {
    .card-header {
        padding: 16px;
        gap: 10px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-content h1 {
        font-size: 15px;
    }

    .warning-banner {
        margin: 8px;
        padding: 8px 10px;
    }

    .form-section,
    .query-section {
        padding: 0 8px;
    }

    .form-input,
    .form-select {
        padding: 10px 11px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 11px 12px;
        font-size: 13px;
    }

    .query-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .footer {
        padding: 14px 8px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .form-input,
    .form-select,
    .query-input {
        padding: 14px;
        font-size: 16px;
    }

    .query-input {
        padding: 14px 14px 14px 56px;
    }

    .form-select {
        padding-right: 44px;
        background-position: right 14px center;
    }

    .submit-btn,
    .query-btn {
        padding: 16px;
        font-size: 15px;
        min-height: 48px;
    }

    .record-item {
        padding: 16px;
    }

    .record-item:active {
        background: linear-gradient(135deg, #FFF8E1 0%, #FFFDF7 100%);
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .submit-btn,
    .query-btn {
        font-weight: 600;
    }
}
