/* 光翼查询页面样式 */

.wings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* 功能模块区域 */
.function-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.function-block {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.function-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* 账号管理模块 */
.account-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.block-icon {
    margin-bottom: 10px;
}

.block-icon .icon-svg {
    width: 36px;
    height: 36px;
    color: var(--secondary-color);
}

.block-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.block-description {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.block-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.block-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(91, 163, 197, 0.3);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.block-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* 查询模块 */
.query-block {
    padding: 16px;
}

.query-block .block-icon,
.query-block .block-title,
.query-block .block-description {
    text-align: center;
}

.query-block .block-icon {
    display: flex;
    justify-content: center;
}

/* 查询表单样式 */
.query-form-container {
    padding: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-title {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 2px;
}

/* 账号选择器 */
.account-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.account-option {
    position: relative;
}

.account-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.account-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--background-secondary), var(--card-background));
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.account-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.account-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(91, 163, 197, 0.1), rgba(91, 163, 197, 0.05));
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.account-option input[type="radio"]:checked + label::before {
    transform: scaleX(1);
}

.account-option label:hover {
    border-color: var(--primary-light);
}

/* 限时免费提示 */
.free-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.free-notice .notice-icon {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

.free-notice .notice-text {
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
}

/* 注意事项 */
.info-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--background-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* 提交按钮 */
.submit-query-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(91, 163, 197, 0.3);
}

.submit-query-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 163, 197, 0.4);
}

.submit-query-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 登录提示 */
.login-prompt,
.no-accounts {
    text-align: center;
    padding: 24px 20px;
    background: var(--background-secondary);
    border-radius: 8px;
}

.login-prompt p,
.no-accounts p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(91, 163, 197, 0.3);
}

/* ================== 查询结果区域 ================== */
.result-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    animation: slideUp 0.4s ease;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.result-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.result-account {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* ================== 总览卡片 ================== */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.overview-card {
    background: linear-gradient(135deg, var(--background-secondary), var(--card-background));
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.normal-card::before {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.permanent-card::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.overview-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.overview-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.overview-badge.complete {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.overview-badge.incomplete {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.overview-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.overview-collected {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.normal-card .overview-collected {
    color: #06b6d4;
}

.permanent-card .overview-collected {
    color: #f59e0b;
}

.overview-divider {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 300;
}

.overview-total {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
}

.overview-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.normal-card .progress-bar {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.permanent-card .progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    min-width: 48px;
    text-align: right;
}

.overview-note {
    font-size: 13px;
    color: var(--text-secondary);
    min-height: 20px;
}

/* 永久光翼细分 */
.permanent-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.permanent-details:empty {
    display: none;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
}

/* ================== 地图区块 ================== */
.map-section {
    margin-top: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* 全部完成提示 */
.all-complete {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 14px;
}

.complete-icon {
    width: 56px;
    height: 56px;
    color: #10b981;
    margin-bottom: 16px;
}

.complete-text {
    color: #10b981;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

/* 地图网格 */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.map-card {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.map-card:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(91, 163, 197, 0.05), transparent);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.map-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.map-missing {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 149, 87, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.map-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 6px 10px;
    background: var(--card-background);
    border-radius: 6px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.map-tag-value {
    font-weight: 600;
    color: var(--accent-color);
    margin-left: 4px;
}

/* ================== 动画 ================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== 深色模式 ================== */
@media (prefers-color-scheme: dark) {
    .overview-card {
        background: linear-gradient(135deg, var(--background-secondary), rgba(0, 0, 0, 0.2));
    }
    
    .map-card {
        background: var(--background-secondary);
    }
    
    .map-tag {
        background: rgba(0, 0, 0, 0.2);
    }
}

/* ================== 响应式 ================== */
@media (max-width: 768px) {
    .wings-container {
        padding: 10px;
    }
    
    .function-blocks {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-section {
        padding: 16px;
        border-radius: 12px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .overview-collected {
        font-size: 36px;
    }
    
    .map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .result-title {
        font-size: 18px;
    }
    
    .overview-collected {
        font-size: 32px;
    }
    
    .overview-total {
        font-size: 20px;
    }
    
    .account-selector {
        grid-template-columns: 1fr;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .block-btn,
    .btn,
    .submit-query-btn {
        min-height: 44px;
    }
    
    .account-option label {
        min-height: 44px;
    }
}