/* ============================================================
   SafeW 官网 - 独立样式表
   文件: static_safew/css/style.css
   说明: 包含全局变量、布局、组件及响应式
   ============================================================ */

/* ---------- 全局变量 ---------- */
:root {
    --bg-base: #06010d;
    --text-white: #ffffff;
    --text-gray: #b0aac2;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --gradient-main: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --card-blend-bg: rgba(26, 12, 46, 0.3);
    --card-blend-border: rgba(168, 85, 247, 0.12);
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-base);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ---------- 背景光晕 ---------- */
.neon-bg-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.45) 0%, rgba(59, 130, 246, 0.1) 45%, rgba(6, 1, 13, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}
.glow-1 {
    top: -150px;
    right: -100px;
}
.glow-2 {
    top: 1100px;
    left: -250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(147, 51, 234, 0.2) 50%, rgba(6, 1, 13, 0) 70%);
}
.glow-3 {
    top: 2300px;
    right: -250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(6, 1, 13, 0) 70%);
}
.glow-4 {
    top: 3500px;
    left: -100px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(6, 1, 13, 0) 70%);
}
.glow-5 {
    bottom: 200px;
    right: 10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(6, 1, 13, 0) 75%);
}

/* 保证内容在光晕之上 */
section,
header,
footer {
    position: relative;
    z-index: 2;
    scroll-margin-top: 100px;
}

/* ---------- 导航 ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(6, 1, 13, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
}
.logo-img {
    height: 32px;
    display: block;
    cursor: pointer;
}
nav {
    display: flex;
    gap: 35px;
}
nav span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
nav span:hover {
    color: var(--text-white);
}

.lang-container {
    position: relative;
    display: inline-block;
}
.lang-select {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(20, 10, 35, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 130px;
    padding: 6px 0;
    display: none;
    backdrop-filter: blur(10px);
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.lang-dropdown a:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-white);
}
.lang-container:hover .lang-dropdown {
    display: block;
}

/* ---------- 首屏 ---------- */
.hero-container {
    padding: 180px 8% 80px 8%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-left {
    flex: 1;
    max-width: 620px;
}
.hero-left h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}
.brand-gradient {
    display: inline-block;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-left p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 45px;
    text-align: justify;
    font-weight: 300;
}

/* 下载按钮 */
.download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    scroll-margin-top: 140px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 32px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn-primary i {
    font-size: 18px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
    opacity: 0.95;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #c9c0dd;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-secondary i {
    font-size: 14px;
    color: #a855f7;
}
.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.mockup-img {
    max-width: 460px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(147, 51, 234, 0.3));
}

/* ---------- 通用 ---------- */
.content-section {
    padding: 90px 8%;
}
.section-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-blend-bg);
    border: 1px solid var(--card-blend-border);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.15);
}
.feature-img-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.feature-text h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}
.feature-text p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ---------- 左右分栏 ---------- */
.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding-top: 100px;
    padding-bottom: 100px;
}
.split-info {
    flex: 1;
    max-width: 540px;
}
.split-info h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}
.split-subtitle {
    font-size: 20px;
    font-weight: bold;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}
.split-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.list-icon {
    color: var(--accent-purple);
    font-size: 15px;
    margin-top: 4px;
    filter: drop-shadow(0 0 5px var(--accent-purple));
}
.list-text h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}
.list-text p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}
.split-media {
    flex: 1;
    display: flex;
    justify-content: center;
}
.sync-mockup {
    max-width: 480px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(147, 51, 234, 0.25));
}

/* ---------- 企业安全 ---------- */
.security-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 540px;
}
.security-row-card {
    background: var(--card-blend-bg);
    border: 1px solid var(--card-blend-border);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.security-row-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.12);
}
.security-icon-box {
    background: rgba(168, 85, 247, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* ---------- 机器人 ---------- */
.bot-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}
.bot-mini-card {
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    gap: 15px;
}
.bot-mini-card i {
    color: var(--accent-purple);
    font-size: 18px;
    margin-top: 3px;
}
.bot-mini-card h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}
.bot-mini-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ---------- 社区 ---------- */
.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.community-header h2 {
    font-size: 32px;
    font-weight: bold;
}
.arrow-buttons {
    display: flex;
    gap: 12px;
}
.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: transparent;
    color: #9a8bb0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.grid-3-comments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.comment-card {
    background: var(--card-blend-bg);
    border: 1px solid var(--card-blend-border);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 30px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.comment-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.12);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.user-name {
    font-size: 15px;
    font-weight: bold;
}
.comment-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
    text-align: justify;
}

/* ---------- FAQ ---------- */
.faq-wrap {
    display: flex;
    gap: 80px;
    padding-top: 40px;
}
.faq-left {
    flex: 1;
    max-width: 320px;
    position: sticky;
    top: 140px;
    height: max-content;
}
.faq-left h2 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
}
.faq-left p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}
.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-main);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}
.faq-contact-btn:hover {
    opacity: 0.9;
}
.faq-right {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.faq-block {
    background: var(--card-blend-bg);
    border: 1px solid var(--card-blend-border);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-block:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.1);
}
.faq-block h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-white);
}
.faq-block h3 i {
    color: var(--accent-purple);
    font-size: 12px;
}
.faq-block p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: justify;
}

/* ---------- 页脚 ---------- */
.footer-new {
    background: #030008;
    padding: 60px 8% 30px 8%;
    border-top: 1px solid rgba(168, 85, 247, 0.08);
    color: #7a6f94;
    font-size: 13px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.06);
}

.footer-brand .logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    background: linear-gradient(130deg, #a78bfa, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand p {
    color: #7a6f94;
    font-size: 13px;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 14px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.12);
    color: #8a7aa8;
    transition: all 0.25s;
    text-decoration: none;
    font-size: 14px;
}
.social-icons a:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #f0ecfc;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #7a6f94;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #e0d8f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 12px;
    color: #5b4e72;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links {
    display: flex;
    gap: 24px;
}
.footer-bottom-links a {
    color: #5b4e72;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 12px;
}
.footer-bottom-links a:hover {
    color: #b0aac2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    header {
        padding: 15px 5%;
    }
    nav {
        display: none;
    }
    .hero-container,
    .split-section,
    .faq-wrap {
        flex-direction: column;
        text-align: center;
    }
    .hero-right,
    .split-media,
    .faq-left {
        justify-content: center;
        max-width: 100%;
    }
    .grid-3,
    .grid-3-comments,
    .faq-right,
    .bot-features-grid {
        grid-template-columns: 1fr;
    }
    .download-actions {
        justify-content: center;
    }
    .security-card-list {
        max-width: 100%;
    }
    .faq-left {
        position: relative;
        top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-left h1 {
        font-size: 34px;
    }
    .section-title {
        font-size: 26px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .download-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}