/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* 电脑端外层背景 */
body {
    background-color: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* 核心应用容器 */
.app-container {
    width: 100%;
    height: 100vh;
    background-color: #f8f9fc; 
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.app-container::-webkit-scrollbar { display: none; }

/* 顶部渐变背景区域 */
.header-bg {
    background: linear-gradient(180deg, #1e6fff 0%, #4a90e2 75%, #f8f9fc 100%);
    padding: 40px 20px 60px; 
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Logo 区域样式 */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px; 
    width: 100%;
}

/* Logo 图片样式 */
.logo-img {
    max-height: 52px; 
    max-width: 70%;   
    object-fit: contain;
}

/* 备用文字 Logo */
.text-logo {
    display: none; 
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.quick-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    cursor: pointer;
}
.quick-item i {
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 2px;
    border-radius: 4px;
}

.search-bar-wrapper {
    width: 100%;
    margin-top: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 100px;
    padding: 0 16px;
    height: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.search-box:focus-within {
    transform: translateY(-2px);
}

.search-box i.ri-search-line {
    color: #8c92a4;
    font-size: 20px;
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 14px;
}
.search-box input::placeholder {
    color: #a0a5b1;
}

.search-divider {
    width: 1px;
    height: 16px;
    background-color: #e5e7eb;
    margin: 0 12px;
}
.search-btn-text {
    color: #2b7fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    user-select: none;
}

/* 主体内容区域 */
.content-area {
    padding: 0 20px 30px;
    margin-top: -30px; 
    position: relative;
    z-index: 2;
}

/* ================= 赞助商轮播区域 ================= */
.sponsor-section {
    margin-bottom: 24px;
    transition: display 0.3s; 
}

.sponsor-card {
    position: relative;
    background: #ffffff; 
    padding: 8px; 
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

/* 固定的金牌赞助商标签 (上下留白已增加) */
.sponsor-tag {
    position: absolute;
    top: 8px; 
    left: 8px;
    background: linear-gradient(135deg, #2b7fff 0%, #1e6fff 100%);
    color: #ffffff;
    font-size: 10px; 
    font-weight: 600;
    padding: 6px 10px; 
    border-bottom-right-radius: 8px; 
    border-top-left-radius: 12px; 
    box-shadow: 2px 2px 6px rgba(43, 127, 255, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.sponsor-tag i {
    font-size: 11px; 
    color: #ffffff; 
}

.sponsor-fade-container {
    position: relative;
    width: 100%;
    height: 150px; 
    border-radius: 12px; 
    overflow: hidden;
}

.sponsor-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    cursor: pointer;
}

.sponsor-img.active {
    opacity: 1;
    z-index: 2;
}

/* ================= 导航网格 ================= */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
}

.nav-card {
    background: #ffffff;
    border-radius: 14px; 
    padding: 12px 10px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
}
.nav-card:active {
    transform: scale(0.98);
}

.nav-icon-wrap {
    width: 40px; 
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; 
    flex-shrink: 0; 
    background: #f0f7ff;
    color: #2b7fff;
}

.nav-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden; 
    width: 100%;
}

.nav-title {
    font-size: 14px; 
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

.nav-desc {
    font-size: 11px; 
    color: #888; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* 微调色彩 */
.nav-card:nth-child(2) .nav-icon-wrap { background: #f5f0ff; color: #8b5cf6; }
.nav-card:nth-child(3) .nav-icon-wrap { background: #fff0f0; color: #ef4444; }
.nav-card:nth-child(4) .nav-icon-wrap { background: #fffae6; color: #f59e0b; }
.nav-card:nth-child(5) .nav-icon-wrap { background: #f0fdf4; color: #10b981; }
.nav-card:nth-child(6) .nav-icon-wrap { background: #f0f9ff; color: #0ea5e9; }

/* 搜索无结果提示 */
.no-result {
    display: none;
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px 0;
    width: 100%;
    grid-column: span 2;
}

/* ================= 底部关于域名卡片 ================= */
.footer-card {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
    color: #666;
    font-size: 14px;
    font-weight: 500;
}
.footer-card:active {
    transform: scale(0.98);
}
.footer-card i {
    font-size: 18px;
    color: #2b7fff;
}

/* ================= 统一弹窗样式 ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); display: none;
    justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box {
    background: #ffffff; width: 85%; max-width: 320px;
    border-radius: 20px; padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-icon {
    width: 56px; height: 56px; border-radius: 50%;
    margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.modal-icon.info { background: #eef4ff; color: #2b7fff; }
.modal-icon.warning { background: #fff5e6; color: #f5a623; }
.modal-title { font-size: 18px; font-weight: 700; color: #1d1e20; margin-bottom: 10px; }
.modal-content { 
    font-size: 13px; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    word-break: break-word;
    text-align: left;
}
.modal-content strong { color: #1d1e20; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; }
.modal-btn {
    flex: 1; height: 44px; border-radius: 100px; font-size: 15px;
    font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.modal-btn-cancel { background: #f1f3f5; color: #4a4d52; }
.modal-btn-primary { background: #2b7fff; color: white; box-shadow: 0 4px 12px rgba(43, 127, 255, 0.3); }

/* ================= 电脑端适配 ================= */
@media (min-width: 480px) {
    body {
        background-color: #e5e7eb;
        background-image: radial-gradient(#d1d5db 1px, transparent 1px);
        background-size: 20px 20px;
    }
    .app-container {
        width: 414px; 
        height: 850px; 
        max-height: 90vh;
        border-radius: 40px; 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 10px #fff; 
        border: 1px solid #e5e7eb;
    }
    .header-bg {
        padding-top: 50px; 
    }
}