/* 首页样式 */

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 16px 0;
    transition: background 0.3s, border 0.3s;
}

@media (max-width: 768px) {
    .main {
        margin-top: 0;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-title .accent {
    color: var(--cta-color);
}

.brand-sub {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-color);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: rgba(0, 102, 255, 0.10);
    color: var(--primary-color);
}

.nav a.nav-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-brand);
}

.main {
    padding-top: 92px;
}

/* Hero（合并标题+视频为一个区块） */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: #0f172a;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

@media (max-width: 768px) {
    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
    }
}

.hero-content {
    text-align: left;
    padding-right: 20px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #0f172a;
    background: linear-gradient(135deg, #0066ff 0%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    margin-bottom: 32px;
    font-size: 19px;
    color: #475569;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-video {
    width: 100%;
}

.video-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.1), 0 0 0 1px rgba(0, 102, 255, 0.06);
    background: #fff;
    position: relative;
    aspect-ratio: 16 / 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(0, 102, 255, 0.15), 0 0 0 1px rgba(0, 102, 255, 0.1);
}

@media (max-width: 768px) {
    .video-card {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }
    
    .video-card:hover {
        transform: none;
    }
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(0, 163, 255, 0.02) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 安装区块 */
.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.install-card {
    text-align: center;
}

.install-card .bi {
    font-size: 40px;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 14px;
}

.install-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* 功能区 */
.feature-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.feature-overview-item {
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.14);
}

.feature-overview-item .bi {
    font-size: 22px;
    color: var(--primary-color);
    margin-right: 8px;
}

.feature-overview-item strong {
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 22px;
}

.tabs::-webkit-scrollbar {
    height: 6px;
}

.tabs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
}

.tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--muted-text-color);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.tab.active {
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.35);
    color: var(--text-color);
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 26px 22px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card ul {
    margin-top: 10px;
    color: var(--muted-text-color);
    font-size: 13px;
    line-height: 1.8;
}

.feature-card li {
    margin-left: 14px;
    list-style: disc;
}

.feature-card .card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* 为什么使用 */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.why-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.why-card .bi {
    font-size: 22px;
    color: var(--primary-color);
}

/* 兼容 icon font 加载异常时的兜底：避免出现私有区乱码字 */
.why-card .bi,
.feature-overview-item .bi,
.install-card .bi {
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal;
    speak: never;
}

.why-card ul {
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.9;
}

.why-card li {
    margin-left: 14px;
    list-style: disc;
}

/* 口碑 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card .review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-card .stars {
    color: #f59e0b;
}

.review-card .name {
    font-weight: 800;
}

.review-card p {
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-brand-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.footer-brand-text p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.footer-platforms {
    margin-top: 20px;
}

.footer-platforms p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tags span {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 12px;
    transition: all 0.2s ease;
}

.platform-tags span:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.4);
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

.footer-legal .divider {
    color: #475569;
    font-size: 13px;
}

/* 弹层视频 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-panel {
    width: min(920px, 100%);
    background: #0b1220;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
}

.modal-body video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #000;
}

/* 平板适配 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 平板 Hero 适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero p {
        font-size: 17px;
    }
}

/* 移动端适配 (≤768px) */
@media (max-width: 768px) {
    /* Header 移动端 */
    .header {
        padding: 12px 0;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .brand {
        width: 100%;
    }
    
    .brand-title {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    
    .brand-sub {
        white-space: normal;
        font-size: 11px;
        line-height: 1.4;
    }
    
    .nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav a.nav-cta {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Hero 移动端 */
    .hero {
        padding: 60px 0 40px;
        margin-top: 0;
    }
    
    .hero .container {
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        order: 1;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 14px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 28px;
        line-height: 1.6;
        padding: 0 8px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 4px;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .hero-video {
        order: 2;
        width: 100%;
        margin: 0 auto;
    }
    
    .video-card {
        border-radius: 16px;
        aspect-ratio: 16 / 9;
        box-shadow: 0 16px 48px rgba(0, 102, 255, 0.15), 0 0 0 1px rgba(0, 102, 255, 0.08);
        margin: 0 auto;
    }
    
    .video-card video {
        border-radius: 16px;
    }
    
    /* Section 通用 */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    /* 安装区块 */
    .install-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .install-card {
        padding: 24px 20px;
    }
    
    .install-card .bi {
        font-size: 36px;
    }
    
    .install-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .install-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .install-actions .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* 功能区 */
    .feature-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature-overview-item {
        padding: 14px 12px;
        font-size: 13px;
    }
    
    .feature-overview-item .bi {
        font-size: 18px;
        margin-right: 6px;
    }
    
    .tabs {
        gap: 8px;
        padding-bottom: 6px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px 18px;
    }
    
    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .feature-card ul {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-actions .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* 为什么使用 */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .why-card {
        padding: 20px 18px;
    }
    
    .why-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .why-card .bi {
        font-size: 20px;
    }
    
    .why-card ul {
        font-size: 13px;
        line-height: 1.8;
    }
    
    /* 口碑 */
    .review-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .review-card {
        padding: 20px 18px;
    }
    
    .review-card .name {
        font-size: 15px;
    }
    
    .review-card .stars {
        font-size: 14px;
    }
    
    .review-card p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    /* Footer 移动端 */
    .footer {
        padding: 36px 0 20px;
        background: #0f172a;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        max-width: 100%;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-logo {
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-logo-img {
        width: 36px;
        height: 36px;
    }
    
    .footer-brand-text {
        width: 100%;
    }
    
    .footer-brand-text h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .footer-brand-text p {
        font-size: 13px;
        line-height: 1.5;
        color: #94a3b8;
    }
    
    .footer-platforms {
        margin-top: 16px;
    }
    
    .footer-platforms p {
        font-size: 12px;
        margin-bottom: 8px;
        color: #94a3b8;
    }
    
    .platform-tags {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .platform-tags span {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    .footer-col {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer-col:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 14px;
        color: #fff;
        font-weight: 700;
    }
    
    .footer-col ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 16px;
    }
    
    .footer-col ul li {
        margin-bottom: 0;
    }
    
    .footer-col ul li a {
        font-size: 13px;
        color: #94a3b8;
        display: block;
        padding: 4px 0;
        transition: color 0.2s ease;
    }
    
    .footer-col ul li a:hover {
        color: #fff;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 20px;
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-copyright {
        width: 100%;
    }
    
    .footer-copyright p {
        font-size: 12px;
        color: #64748b;
        line-height: 1.6;
        margin: 0;
    }
    
    .footer-legal {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-legal a {
        font-size: 12px;
        color: #94a3b8;
        padding: 4px 0;
        display: inline-block;
    }
    
    .footer-legal a:hover {
        color: #fff;
    }
    
    .footer-legal .divider {
        display: none;
    }
    
    /* Modal 移动端 */
    .modal {
        padding: 10px;
    }
    
    .modal-panel {
        width: 100%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-body video {
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; transition: none !important; }
}
