/* ===================== 首页重设计 ===================== */
.intro-container { max-width: 1500px; margin: 0 auto; padding: 0 0 10px; }

/* === 游客链接弹窗 === */
.guest-link-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.guest-link-overlay.show { display: flex; }
.guest-link-popup {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 12px 48px rgba(0,0,0,.25);
    text-align: center;
    position: relative;
    animation: gp-fade-in .3s ease;
}
@keyframes gp-fade-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.gp-logo {
    max-width: 120px;
    max-height: 48px;
    width: auto;
    height: auto;
    margin: 0 auto 12px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}
.gp-logo-placeholder {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e6f4ff, #f0f7ff);
    font-size: 26px;
}
.gp-link-name {
    font-size: 17px; font-weight: 700; color: var(--text-primary, #333);
    margin-bottom: 4px;
    word-break: break-all;
}
.gp-desc {
    font-size: 13px; color: #8a97a8;
    margin-bottom: 16px;
}
.gp-url-box {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 14px;
}
.gp-url {
    flex: 1; min-width: 0;
    padding: 10px 14px;
    border: 1px solid #d9e8f5;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #f7f9fc;
    outline: none;
}
.gp-copy-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: var(--primary-color);
    color: #fff;
    transition: all .2s;
}
.gp-copy-btn:hover { background: var(--primary-hover); }
.gp-warning {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.gp-countdown-text {
    font-size: 13px;
    color: #ad6800;
    font-weight: 600;
    margin-bottom: 4px;
}
.gp-countdown {
    color: #ff4d4f;
    font-weight: 700;
}
.gp-warning-text {
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.5;
}
.gp-cta {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 12px;
}
.gp-btn-register {
    display: block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(22,119,255,.3);
}
.gp-btn-register:hover {
    background: #0958d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22,119,255,.4);
}
.gp-btn-login {
    display: block;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    transition: all .2s;
}
.gp-btn-login:hover {
    background: #e8e8e8;
    border-color: #d9d9d9;
}
.gp-open-link {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 8px;
}
.gp-open-link:hover { text-decoration: underline; }
.gp-close {
    background: none;
    border: none;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}
.gp-close:hover { color: #666; }

/* === 拦截提示 === */
.block-notice {
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #ad6800;
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border: 1px solid #ffe58f;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

/* === 功能卡片网格（右侧区域） === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: center;   /* 与右侧用户卡等高时，4张功能卡在区域内垂直居中 */
}
.feature-card {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 18px 14px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform .3s ease;
    transform-origin: left;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border, #91caff);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon-wrap {
    width: 42px; height: 42px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform .3s;
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.feature-icon-1 { background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%); }
.feature-icon-2 { background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%); }
.feature-icon-3 { background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%); }
.feature-icon-4 { background: linear-gradient(135deg, #f9f0ff 0%, #efdbff 100%); }
.feature-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* === 文件需求区域（右侧区域） === */
.files-section {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.files-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.files-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.files-section-header .count-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: 999px;
}
.files-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.file-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f7f9fc 0%, #fff 100%);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all .2s;
}
.file-chip:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(22,119,255,.12);
    transform: translateY(-1px);
}
.file-chip-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}
.file-chip:nth-child(1) .file-chip-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.file-chip:nth-child(2) .file-chip-icon { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.file-chip:nth-child(3) .file-chip-icon { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }
.file-chip:nth-child(4) .file-chip-icon { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.file-chip:nth-child(5) .file-chip-icon { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.file-chip:nth-child(6) .file-chip-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.file-chip-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-regular);
    font-family: var(--font-mono, 'SF Mono', Consolas, monospace);
    word-break: break-all;
    line-height: 1.3;
}
.files-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.7;
    padding: 10px 14px;
    background: var(--bg-hover);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: auto;   /* 高度有富余时，提示条贴底，与右侧规则卡对齐 */
}

/* === 左侧主区域容器：透明容器，内部两个区块直接参与 home-grid 排布 === */
.home-main {
    display: contents;
}

/* === 响应式 === */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .files-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .files-grid { grid-template-columns: 1fr; }
    .gp-url-box { flex-direction: column; }
    .gp-url { width: 100%; }
    .gp-copy-btn { width: 100%; }
}
