* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #F5F5F5;
    min-height: 100vh;
    padding-bottom: 20px;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.header {
    background: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.header-title p {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    line-height: 24px;
}

.menu-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.banner {
    padding: 5px 20px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFEFD5;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.banner-left {
    flex: 1;
}

.banner-title {
    font-size: 30px;
    font-weight: bold;
    color: #FF8C00;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 140, 0, 0.2);
}

.banner-right {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D文档图标 - 优化版 */
.document-3d {
    width: 110px;
    height: 130px;
    position: relative;
    transform: perspective(600px) rotateY(-12deg);
}

.document-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #FFB366 0%, #FF9944 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35);
    padding: 14px 10px;
}

.document-clip {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 16px;
    background: linear-gradient(145deg, #FFD699 0%, #FFB84D 100%);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 6px rgba(255, 180, 77, 0.3);
}

.document-clip::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: #FFE0B3;
    border-radius: 2px;
}

.doc-line {
    height: 3.5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    margin-bottom: 9px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.doc-line:nth-child(2) {
    width: 88%;
}

.doc-line:nth-child(3) {
    width: 72%;
}

.doc-line:nth-child(4) {
    width: 90%;
}

/* 放大镜使用 FontAwesome 图标 */
.magnifier-3d {
    position: absolute;
    bottom: 12px;
    right: -8px;
    width: 70px;
    height: 70px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnifier-icon-3d {
    font-size: 56px;
    color: #FF6B35;
    filter: drop-shadow(0 4px 15px rgba(255, 107, 53, 0.35));
}

/* 装饰元素 - 优化版 */
.float-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 200, 100, 0.5);
    animation: float 3s ease-in-out infinite;
}

.circle-1 {
    width: 28px;
    height: 28px;
    top: 15px;
    right: 25px;
    animation-delay: 0s;
}

.circle-2 {
    width: 18px;
    height: 18px;
    bottom: 35px;
    left: 8px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        opacity: 0.7;
    }
}

.main-card {
    margin: 20px 15px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 16px;
}

.form-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-label {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    min-width: 85px;
    display: flex;
    align-items: center;
}

.form-label .required {
    color: #FF4D4F;
    margin-left: 4px;
    font-size: 16px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    font-size: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
}

.form-input::placeholder {
    color: #D0D0D0;
    font-size: 14px;
}

.input-suffix {
    color: #333;
    font-size: 15px;
    margin-left: 4px;
}

.query-btn {
    width: calc(100% - 80px);
    margin: 30px auto 0;
    display: block;
    height: 50px;
    background: linear-gradient(135deg, #00A651 0%, #008744 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
    transition: all 0.3s;
}

.query-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 166, 81, 0.3);
}

.query-btn:disabled {
    background: linear-gradient(135deg, #CCCCCC 0%, #AAAAAA 100%);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    display: none;
}

.toast.show {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

@media (max-width: 375px) {
    .banner-title {
        font-size: 30px;
    }
    
    .banner-right {
        width: 180px;
        height: 180px;
    }

    .document-3d {
        width: 100px;
        height: 120px;
    }
    
    .main-card {
        padding: 24px 16px;
    }

    .form-label {
        font-size: 14px;
        min-width: 75px;
    }

    .form-input {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .banner {
        max-width: 600px;
        margin: 0 auto;
    }

    .main-card {
        max-width: 600px;
        margin: 20px auto;
    }
}
