/* ============================================================
   KLSF 首页样式
   ============================================================ */

:root {
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-grad: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --text: #212529;
    --muted: #6c757d;
    --glass-bg: rgba(255,255,255,0.75);
    --glass-border: rgba(255,255,255,0.5);
    --glass-shadow: rgba(31,38,135,0.1);
}

html { font-size: 18px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar-glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: padding 0.3s, box-shadow 0.3s;
    padding: 0.8rem 0;
}

.navbar-glass.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-glass .navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-glass .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-glass .nav-link:hover {
    color: var(--primary) !important;
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero-section {
    position: relative;
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    font-weight: 300;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 左侧文字介绍 */
.hero-intro {
    padding-right: 2rem;
}

.hero-intro h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-intro .intro-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
}

.hero-intro .intro-item .icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.hero-intro .intro-item .icon.check {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.hero-intro .intro-item .icon.star {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.hero-intro .intro-item .icon.lock {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* 云平台标签 */
.cloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}

.cloud-tags .tag {
    padding: 8px 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
    cursor: default;
}

.cloud-tags .tag:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   玻璃拟态卡片
   ============================================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px var(--glass-shadow);
    border-radius: 20px;
    transition: transform 0.3s;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(31,38,135,0.15);
}

/* ============================================================
   域名查询
   ============================================================ */
.domain-query-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.domain-query-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
}

.domain-query-wrap input {
    flex: 1;
    border: none !important;
    outline: none;
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
    min-width: 0;
    background: transparent;
}

.domain-query-wrap .dot-sep {
    font-size: 1.3rem;
    color: var(--muted);
    padding: 0 0.1rem 0 0;
    user-select: none;
    flex-shrink: 0;
}

.domain-query-wrap select {
    border: none !important;
    outline: none;
    font-size: 1.2rem;
    padding: 1rem 2.5rem 1rem 0.5rem;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    min-width: 180px;
    flex-shrink: 0;
}

.btn-query {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.btn-query:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13,110,253,0.3);
}

/* 查询卡片 */
.query-card {
    text-align: center;
}

.query-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.query-card .subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ============================================================
   特性卡片
   ============================================================ */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.accordion-button {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.1rem 1.3rem;
    min-height: 48px;
}

.accordion-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

/* ============================================================
   FAQ 卡片
   ============================================================ */
.faq-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    height: 100%;
}

.faq-card h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
}

.faq-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}

.site-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-footer .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.site-footer .footer-links {
    display: flex;
    gap: 2rem;
}

.site-footer .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: #fff;
}

.site-footer .footer-copyright {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================================
   Toast
   ============================================================ */
.toast-container {
    z-index: 1100;
}

/* ============================================================
   手机适配
   ============================================================ */
@media (max-width: 768px) {
    html { font-size: 16px; }
    
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-intro {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-intro h2 {
        font-size: 1.3rem;
    }
    
    .cloud-tags {
        justify-content: center;
    }
    
    .glass-panel {
        padding: 1.2rem !important;
        width: 100%;
    }
    
    .domain-query-wrap {
        flex-wrap: wrap;
    }
    
    .domain-query-wrap input {
        width: 100%;
        flex: none;
        font-size: 1.1rem;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #eee !important;
        border-radius: 0;
    }
    
    .domain-query-wrap .dot-sep {
        display: none;
    }
    
    .domain-query-wrap select {
        width: 100%;
        flex: none;
        font-size: 1.1rem;
        padding: 0.85rem 2rem 0.85rem 1rem;
        background-position: right 1rem center;
        border-radius: 0;
    }
    
    .btn-query {
        width: 100%;
        font-size: 1.05rem;
        padding: 0.85rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .navbar-glass .navbar-brand {
        font-size: 1.1rem;
    }
    
    .glass-panel:hover,
    .feature-card:hover,
    .btn-query:hover {
        transform: none;
    }
    
    .site-footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .glass-panel {
        padding: 1rem !important;
    }
}
