/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #4caf50 0%, #4caf50 50%, #ffffff 50%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    justify-content: flex-start;
    gap: 0;
    align-items: stretch;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* 主要内容区域 */
.main-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
}

/* 查询区域 */
.query-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.query-box h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.query-box h2 i {
    color: #4caf50;
}

.query-tip {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 查询表单 */
.query-form {
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.query-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

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

/* 查询说明 */
.query-tips {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #4caf50;
}

.query-tips h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-tips h3 i {
    color: #4caf50;
}

.query-tips ul {
    list-style: none;
    padding-left: 0;
}

.query-tips li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.query-tips li:before {
    content: "•";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 查询结果区域 - 弹窗样式 */
.result-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.result-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    padding: 20px;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h3 {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header h3 i {
    color: #4caf50;
}

.close-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.close-btn:active {
    transform: scale(0.95);
}

/* 结果内容样式 */
.result-content {
    font-size: 1.1rem;
}

.result-success {
    text-align: center;
    padding: 30px;
}

.result-success .success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.result-success h4 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-success p {
    color: #666;
    margin-bottom: 10px;
}

.result-error {
    text-align: center;
    padding: 30px;
}

.result-error .error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.result-error h4 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-error p {
    color: #666;
    margin-bottom: 10px;
}

.result-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-info h5 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-info h5 i {
    color: #4caf50;
}

.result-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.result-info .info-label {
    font-weight: 600;
    color: #666;
}

.result-info .info-value {
    color: #333;
}

/* 加入团队区域 */
.join-team-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 40px 20px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.join-team-content {
    max-width: 500px;
    margin: 0 auto;
}

.join-team-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.join-team-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.join-team-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.join-team-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.join-team-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.join-team-btn:active {
    transform: translateY(0);
}

/* 底部样式 */
.footer {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 i {
    color: #4caf50;
}

.footer-section p {
    color: #666;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
        min-height: 100vh;
        overflow-x: hidden;
        justify-content: flex-start;
        gap: 0;
    }
    
    .header {
        padding: 12px;
        margin-bottom: 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .query-section {
        padding: 12px;
        margin-bottom: 0;
    }
    
    .query-box h2 {
        font-size: 1.2rem;
    }
    
    .query-tip {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .input-group input {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px 12px;
    }
    
    .query-btn {
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    
    .query-tips {
        padding: 12px;
        font-size: 0.8rem;
        margin-top: 15px;
    }
    
    .query-tips h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .query-tips li {
        padding: 4px 0;
        font-size: 0.75rem;
    }
    
    .join-team-section {
        padding: 30px 15px;
    }
    
    .join-team-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .join-team-content h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .join-team-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .join-team-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 10px;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .footer-section p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 10px;
    }
    
    /* 弹窗移动端优化 */
    .result-section {
        padding: 10px;
    }
    
    .result-box {
        max-width: 95%;
        max-height: 85%;
        padding: 15px;
    }
    
    .result-header h3 {
        font-size: 1.1rem;
    }
    
    .result-content {
        font-size: 0.9rem;
    }
    
    .result-success h4,
    .result-error h4 {
        font-size: 1.2rem;
    }
    
    .result-info {
        padding: 15px;
    }
    
    .result-info h5 {
        font-size: 0.9rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
        gap: 0;
    }
    
    .logo {
        flex-direction: column;
        gap: 6px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .header {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .query-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .query-box h2 {
        font-size: 1.1rem;
    }
    
    .query-tip {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .input-group input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .query-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .query-tips {
        padding: 10px;
        font-size: 0.75rem;
    }
    
    .query-tips h3 {
        font-size: 0.85rem;
    }
    
    .query-tips li {
        font-size: 0.7rem;
        padding: 3px 0;
    }
    
    .footer {
        padding: 10px;
        margin-top: 8px;
    }
    
    .footer-section h4 {
        font-size: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        font-size: 0.65rem;
    }
    
    .result-box {
        max-width: 98%;
        max-height: 90%;
        padding: 12px;
    }
    
    .result-success .success-icon,
    .result-error .error-icon {
        font-size: 2.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
