/* YC-main.css v3.0 — 彻底修复移动端菜单问题 */
:root {
    --primary: #165DFF;
    --primary-light: #3C7EFF;
    --secondary: #0FC6C2;
    --bg-light: #F5F9FF;
    --card-white: #FFFFFF;
    --text-dark: #1A2639;
    --text-soft: #2E3A59;
    --gray-border: #E9EDF4;
    --shadow-sm: 0 12px 28px -8px rgba(0, 34, 88, 0.12);
    --shadow-hover: 0 22px 40px -12px rgba(0, 70, 150, 0.2);
    --font-main: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* 根治横向滚动：html + body 双保险 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

/* 背景光效 */
.bg-ambient {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 30% 40%, rgba(22,93,255,0.03) 0%, rgba(15,198,194,0.02) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部 */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 44px;
    width: auto;
    border-radius: 8px;
}

.logo-fallback {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pc-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.pc-nav a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.pc-nav a:hover,
.pc-nav a.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-toggle {
    background: white;
    border: 1px solid var(--gray-border);
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.music-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* 移动端导航 — 彻底隐藏 (不可见、不可点击) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 200;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 菜单激活时锁定背景滚动 */
body.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-brand {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-border);
}

/* PC端完全隐藏移动导航 */
@media (min-width: 901px) {
    .mobile-nav {
        display: none;
    }
}

/* 移动端响应式 */
@media (max-width: 900px) {
    .pc-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .logo {
        height: 34px;
    }
}

/* HERO */
.hero-section {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: #4a5a72;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 18px -6px var(--primary);
}
.btn-primary:hover {
    background: #0a4ad0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(22,93,255,0.05);
}

.hero-visual {
    position: relative;
    height: 280px;
}
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #b0e0ff);
    opacity: 0.2;
    filter: blur(40px);
}
.shape1 { width: 200px; height: 200px; top: 0; right: 0; }
.shape2 { width: 150px; height: 150px; bottom: 20px; left: 20px; background: var(--secondary); opacity: 0.15; }

/* 通用区块 */
.section {
    padding: 70px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-dark);
}
.section-header .thin {
    font-weight: 300;
    color: #5c6f87;
}
.section-desc {
    font-size: 1.1rem;
    color: #3a4b65;
    margin-top: 8px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    gap: 30px;
}
.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.community-card,
.contact-item {
    background: white;
    border-radius: 24px;
    padding: 36px 24px 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.2s;
    border: 1px solid rgba(22,93,255,0.08);
}
.service-card:hover,
.community-card:hover,
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

p {
    color: #3b4c66;
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-link i {
    transition: transform 0.2s;
}
.card-link:hover i {
    transform: translateX(4px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.bg-soft-blue {
    background: rgba(22,93,255,0.02);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.contact-item h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.btn-sm {
    padding: 8px 22px;
    font-size: 0.9rem;
}

.compliance-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 30px 0 20px;
    flex-wrap: wrap;
    color: #5c6f87;
}
.compliance-bar a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}
.sep {
    color: #bcc9dc;
}

/* 页脚 */
.site-footer {
    background: white;
    border-top: 1px solid var(--gray-border);
    padding: 50px 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    align-items: center;
    gap: 30px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-legal {
    text-align: right;
    color: #5d6f88;
    font-size: 0.9rem;
}

.float-customer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 12px 28px rgba(22,93,255,0.4);
    transition: 0.2s;
    z-index: 99;
    text-decoration: none;
}
.float-customer:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    padding: 36px 28px;
    border-radius: 32px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 50px rgba(0,20,70,0.2);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #888;
}
.modal-content img {
    max-width: 160px;
    margin: 16px 0;
    border-radius: 16px;
}

.cookie-pop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 16px 20px;
    z-index: 98;
    display: none;
    border: 1px solid rgba(22,93,255,0.1);
}
.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
    color: #1f2a3f;
    margin: 0;
}
.cookie-btns {
    display: flex;
    gap: 8px;
}
.cookie-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a1b3cf;
    cursor: pointer;
    padding: 0 4px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .three-cols {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-legal {
        text-align: center;
    }
    .compliance-bar {
        gap: 16px;
    }
    .btn {
        padding: 10px 24px;
    }
    .float-customer {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== 域名查询区块 ===== */
.bg-white { background: white; }

.domain-search-box {
    max-width: 700px;
    margin: 0 auto;
}

.domain-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: white;
    border: 2px solid var(--gray-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.domain-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22,93,255,0.1);
}

.domain-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
    background: transparent;
    min-width: 0;
}
.domain-input::placeholder {
    color: #aab9ce;
}

.domain-suffix-select {
    border: none;
    border-left: 1px solid var(--gray-border);
    padding: 0 16px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-soft);
    background: #f8fafd;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.domain-search-btn {
    border-radius: 0 !important;
    padding: 16px 28px;
    font-size: 1.05rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}
.btn-searching {
    background: #c5cdd9 !important;
    color: #fff !important;
    pointer-events: none;
    opacity: 0.85;
}

.domain-result {
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: 20px;
    font-size: 1.05rem;
    animation: fadeIn 0.3s ease;
}
.domain-result.available {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.domain-result.unavailable {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.domain-result .domain-name {
    font-size: 1.3rem;
    font-weight: 700;
    word-break: break-all;
}
.domain-result .domain-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 6px 0;
}
.domain-result .action-row {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.domain-result .whois-info {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    font-size: 0.92rem;
}
.domain-result .whois-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.domain-result .whois-row:last-child { border-bottom: none; }
.domain-result .whois-row span:first-child { color: #8899b4; }
.domain-result .whois-row span:last-child { font-weight: 500; word-break: break-all; text-align: right; max-width: 65%; }
.domain-result .badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-ok { background: #bbf7d0; color: #166534; }
.badge-no { background: #fecaca; color: #991b1b; }

.domain-hint {
    text-align: center;
    margin-top: 16px;
    color: #8899b4;
    font-size: 0.9rem;
}
.domain-hint i {
    margin-right: 4px;
}

/* ===== 四栏云服务卡片 ===== */
.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 900px) {
    .domain-input-group {
        flex-direction: column;
        gap: 0;
        border-radius: 16px;
    }
    .domain-input {
        padding: 14px 16px;
        font-size: 1rem;
    }
    .domain-suffix-select {
        border-left: none;
        border-top: 1px solid var(--gray-border);
        padding: 12px 16px;
    }
    .domain-search-btn {
        border-radius: 0 0 14px 14px !important;
        padding: 14px;
        justify-content: center;
    }
    .four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .four-cols {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .logo {
        height: 30px;
    }
    .domain-result {
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 0.95rem;
    }
    .domain-result .domain-name {
        font-size: 1.1rem;
    }
    .domain-result .domain-price {
        font-size: 1.4rem;
    }
}