﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #f2f2f2;
}
.header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}
.logo i {
    font-size: 28px;
    margin-right: 10px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #00d2ff;
}
.logo span {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #009688;
}
.nav-menu a {
    margin-left: 30px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #009688;
}
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}
.banner p {
    font-size: 18px;
    opacity: 0.9;
}
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.upload-area {
    border: 2px dashed #d2d2d2;
    background: #fafafa;
    padding: 60px 20px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-area:hover {
    border-color: #009688;
    background: #f0f9f8;
}
.upload-icon {
    margin-bottom: 20px;
}
.upload-icon i {
    font-size: 80px;
    color: #d2d2d2;
}
.parse-result {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.parse-result-item {
    margin-bottom: 10px;
}
.parse-result-item label {
    font-weight: 500;
    color: #666;
    margin-right: 10px;
}
.parse-result-item span {
    color: #333;
    font-family: monospace;
}
.footer {
    background: #393D49;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    opacity: 0.7;
}
.footer-links a:hover {
    opacity: 1;
}
.global-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}
.global-loading.show {
    display: flex;
}
.loading-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.loading-content i {
    font-size: 48px;
    color: #009688;
}
.loading-content p {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
}
.error-banner {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff5722, #ff7043);
    color: #fff;
    padding: 15px 50px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
.error-banner.show {
    display: block;
}
.error-banner .close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}
.error-banner .close-btn:hover {
    transform: translateY(-50%) scale(1.2);
}
.error-banner > i:first-of-type {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}
.offline-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff9800;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}
.offline-banner.show {
    display: block;
}
.offline-banner i {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .container {
        padding: 0 16px !important;
        max-width: 100%;
    }
    .header {
        padding: 8px 0 12px;
    }
    .header-content {
        padding: 0 16px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
    }
    .logo {
        font-size: 18px !important;
        white-space: nowrap;
        margin: 0 !important;
    }
    .logo i {
        font-size: 20px !important;
        margin-right: 6px;
    }
    .logo span {
        font-size: 16px;
        white-space: nowrap;
    }
    .nav-menu {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        -ms-overflow-style: none; 
        padding: 0 !important;
    }
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .nav-menu a,
    .nav-links a {
        font-size: 14px !important;
        padding: 10px 16px !important;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(0, 210, 255, 0.2);
        -webkit-user-select: none;
        user-select: none;
        white-space: nowrap;
        flex: 1;
        max-width: 120px;
    }
    .announcement-section {
        margin-bottom: 20px;
    }
    .announcement-list {
        max-height: 300px;
        -webkit-overflow-scrolling: touch;
    }
    .announcement-item {
        padding: 16px !important;
        line-height: 1.8 !important;
        margin-bottom: 12px !important;
        border-radius: 8px;
    }
    .announcement-item strong {
        display: block;
        margin-bottom: 8px;
        font-size: 15px;
        color: #333;
    }
    .announcement-item > div {
        font-size: 14px;
        color: #666;
        line-height: 1.8;
    }
    .card,
    .layui-card {
        margin-bottom: 20px !important;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    .layui-card-body {
        padding: 20px 16px !important;
    }
    .card-title,
    .layui-card-header {
        font-size: 18px !important;
        padding: 16px !important;
    }
    .card-title i,
    .layui-card-header i {
        font-size: 20px;
    }
    .upload-section {
        margin-bottom: 20px;
    }
    .upload-zone {
        padding: 40px 20px !important;
        min-height: 180px;
        border-radius: 12px;
        border-width: 2px;
    }
    .upload-zone i {
        font-size: 48px !important;
        margin-bottom: 16px;
    }
    .upload-zone p:first-of-type {
        font-size: 15px !important;
        margin-bottom: 10px;
        font-weight: 500;
    }
    .upload-zone p:last-of-type {
        font-size: 13px !important;
        color: #999;
    }
    .parse-result {
        padding: 16px;
        border-radius: 10px;
    }
    .parse-result .layui-form-label {
        width: 80px;
        padding: 10px 0;
        font-size: 14px;
    }
    .parse-result .layui-input-block {
        margin-left: 90px;
    }
    input[type="email"],
    input[type="text"],
    .layui-input,
    .layui-textarea {
        font-size: 16px !important;
        height: 44px !important;
        padding: 0 16px !important;
        border-radius: 8px;
    }
    select,
    .layui-select {
        font-size: 16px !important;
        height: 44px !important;
        padding: 0 16px !important;
        border-radius: 8px;
    }
    button,
    .layui-btn {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
        padding: 0 24px !important;
        border-radius: 8px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    .layui-btn-xs {
        height: auto !important;
        line-height: 1.5 !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
    .layui-btn-lg {
        height: 48px !important;
        line-height: 48px !important;
        font-size: 16px !important;
    }
    .layui-form-label {
        width: 90px;
        font-size: 14px;
        padding: 12px 15px;
    }
    .layui-input-block {
        margin-left: 100px;
    }
    .layui-form-item {
        margin-bottom: 16px;
    }
    .layui-row .layui-col-md6 {
        width: 100% !important;
        margin-bottom: 16px;
    }
    .layui-row .layui-col-md6:last-child {
        margin-bottom: 0;
    }
    .query-section {
        margin-bottom: 20px;
    }
    .query-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }
    .query-form .layui-inline {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    .query-form input {
        width: 100% !important;
        margin-bottom: 0;
    }
    .query-form button {
        width: 100% !important;
    }
    .help-section,
    .layui-collapse {
        margin-bottom: 20px;
    }
    .help-section h2,
    .layui-colla-title {
        font-size: 17px !important;
        padding: 14px 16px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }
    .help-section h2::after,
    .layui-colla-title::after {
        font-size: 18px !important;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
    .layui-colla-content {
        padding: 16px !important;
    }
    .help-section p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 12px;
    }
    .help-section ul,
    .help-section ol {
        padding-left: 20px;
    }
    .help-section li {
        line-height: 1.8 !important;
        margin-bottom: 12px !important;
        font-size: 14px !important;
    }
    .help-section strong {
        font-size: 15px;
        color: #333;
    }
    .help-section table {
        font-size: 14px !important;
        border-radius: 8px;
        overflow: hidden;
    }
    .help-section td,
    .help-section th {
        padding: 12px 10px !important;
        line-height: 1.6;
    }
    .help-section thead th {
        font-size: 14px;
        font-weight: 600;
    }
    .help-section tbody td:first-child {
        font-weight: 500;
    }
    .help-section code {
        font-size: 13px;
        padding: 3px 6px;
        border-radius: 4px;
    }
    .help-content {
        padding: 12px 0;
    }
    .help-content > div {
        margin-bottom: 20px;
    }
    footer {
        padding: 24px 16px;
        margin-top: 30px;
    }
    .footer-links {
        display: flex;
        flex-wrap: nowrap; 
        justify-content: center;
        gap: 6px; 
        margin-bottom: 16px;
    }
    .footer-links a {
        font-size: 14px !important;
        padding: 10px 8px !important; 
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        -webkit-user-select: none;
        user-select: none;
        white-space: nowrap;
        flex-shrink: 0;
    }
    footer p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 8px;
    }
    .global-loading {
        backdrop-filter: blur(2px);
    }
    .loading-content {
        padding: 30px 20px;
        border-radius: 12px;
    }
    .loading-content i {
        font-size: 40px;
    }
    .loading-content p {
        font-size: 15px;
        margin-top: 12px;
    }
    .error-banner {
        padding: 14px 16px;
        font-size: 14px;
    }
    .error-banner i.close-btn {
        font-size: 18px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    .offline-banner {
        padding: 12px 16px;
        font-size: 14px;
    }
    .layui-layer-page .layui-layer-content {
        padding: 16px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    .layui-layer-page .layui-layer-content h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    .layui-layer-page .layui-layer-content p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 10px !important;
    }
    .layui-layer-page .layui-layer-content ul,
    .layui-layer-page .layui-layer-content ol {
        font-size: 14px !important;
    }
    .layui-layer-page .layui-layer-content li {
        line-height: 1.7 !important;
        margin-bottom: 8px !important;
    }
    .layui-layer-title {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
    .layui-layer-btn {
        padding: 10px 16px !important;
    }
    .layui-layer-btn a {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
        padding: 0 20px !important;
    }
    .layui-layer-page {
        max-width: 90% !important;
    }
    * {
        -webkit-overflow-scrolling: touch;
    }
    a, button, .clickable {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        transition: opacity 0.2s;
    }
    a:active, button:active, .clickable:active {
        opacity: 0.7;
    }
}
@media screen and (max-width: 380px) {
    .footer-links {
        flex-wrap: wrap; 
        gap: 8px;
        max-width: 100%;
    }
    .footer-links a {
        font-size: 13px !important;
        padding: 10px 12px !important;
        flex: 0 0 calc(50% - 4px); 
        max-width: calc(50% - 4px);
    }
}
@media screen and (max-width: 375px) {
    .container {
        padding: 0 12px !important;
    }
    .card {
        padding: 16px 12px !important;
    }
    .logo {
        font-size: 16px !important;
    }
    .logo i {
        font-size: 18px !important;
        margin-right: 5px;
    }
    .logo span {
        font-size: 14px;
    }
    .nav-menu a,
    .nav-links a {
        font-size: 13px !important;
        padding: 10px 10px !important;
    }
    .card-title {
        font-size: 16px !important;
    }
    button,
    .layui-btn {
        font-size: 14px !important;
        padding: 0 20px !important;
    }
    .layui-form-label {
        width: 70px;
        font-size: 13px;
    }
    .layui-input-block {
        margin-left: 80px;
    }
    footer p {
        font-size: 12px !important;
    }
}
@media screen and (max-width: 896px) and (orientation: landscape) {
    .card {
        margin-bottom: 16px !important;
        padding: 16px !important;
    }
    .upload-zone {
        padding: 30px 20px !important;
        min-height: 140px;
    }
    .announcement-list {
        max-height: 200px;
    }
    .header {
        padding: 8px 0;
    }
    footer {
        padding: 16px;
        margin-top: 20px;
    }
}
@media (hover: none) and (pointer: coarse) {
    a:hover, button:hover {
    }
    a:active, button:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    .logo, .nav-menu, .footer-links {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
        padding: 0 24px;
    }
    .card {
        padding: 24px 20px;
    }
    .nav-menu a {
        font-size: 15px;
        padding: 10px 16px;
    }
    input, select, button {
        font-size: 15px;
        height: 42px;
    }
}
