/* ============================================
   style.css - BBIN电子 完整样式表
   包含：全局样式、布局、组件、动画、响应式、暗色模式
   所有样式内联，无外部引用
   ============================================ */

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- 基础样式 ---------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* ---------- 链接 ---------- */
a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b81;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 头部导航 ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.logo svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo span {
    background: linear-gradient(135deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 导航菜单 ---------- */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: #ccc;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e94560;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ---------- 汉堡菜单按钮 ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: #e94560;
}

/* ---------- 搜索框 ---------- */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.3);
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    width: 120px;
    font-size: 14px;
    transition: width 0.3s ease;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    background: none;
    border: none;
    color: #e94560;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: transform 0.2s ease;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* ---------- Banner 轮播 ---------- */
.banner {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease, transform 0.5s ease;
    transform: scale(0.98);
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-content {
    text-align: center;
    max-width: 700px;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* ---------- Banner 指示点 ---------- */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots span.active {
    background: #e94560;
    width: 30px;
    border-radius: 6px;
}

.banner-dots span:hover {
    background: rgba(233, 69, 96, 0.7);
}

/* ---------- 通用区块 ---------- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 网格布局 ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ---------- 卡片 ---------- */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.15);
    border-color: rgba(233, 69, 96, 0.2);
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 关于我们 ---------- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    color: #bbb;
    font-size: 15px;
}

.about-text strong {
    color: #e94560;
}

.about-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #e94560;
    line-height: 1.2;
}

.stat-label {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #e94560;
    margin: 0 auto;
    max-width: 700px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #e94560;
    border-radius: 50%;
    border: 2px solid #0f0f23;
    box-shadow: 0 0 0 2px #e94560;
}

.timeline-item h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-item p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 团队网格 ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
}

.team-card svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.team-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.team-card p {
    color: #888;
    font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    user-select: none;
}

.faq-question span {
    transition: transform 0.3s ease;
    font-size: 22px;
    font-weight: 300;
    color: #e94560;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

/* ---------- HowTo 步骤 ---------- */
.howto-steps {
    counter-reset: step;
    max-width: 800px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #e94560;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.howto-step h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.howto-step p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 合作伙伴 ---------- */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-grid svg {
    width: 120px;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-grid svg:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ---------- 客户评价 ---------- */
.testimonial-card {
    text-align: center;
    padding: 40px 30px;
}

.testimonial-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-card span {
    color: #888;
    font-size: 14px;
}

/* ---------- 新闻网格 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    padding: 25px;
}

.news-card .date {
    color: #e94560;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.news-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card .read-more {
    color: #e94560;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.news-card .read-more:hover {
    color: #ff6b81;
    padding-left: 5px;
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.article-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(233, 69, 96, 0.2);
}

.article-item h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-item .meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.article-item p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-item .read-more {
    color: #e94560;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

.article-item .read-more:hover {
    color: #ff6b81;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-item svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    color: #aaa;
    font-size: 14px;
}

/* ---------- 页脚 ---------- */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: #888;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #e94560;
}

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

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
}

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

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e94560;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: none;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #e94560;
}

.breadcrumb span {
    color: #e94560;
}

/* ---------- 滚动动画 ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 关键帧动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ---------- 暗色模式 ---------- */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f0f23;
    }
    header {
        background: rgba(15, 15, 35, 0.95);
    }
}

.dark-mode body {
    background: #0a0a1a;
}

.dark-mode header {
    background: rgba(10, 10, 26, 0.95);
}

.dark-mode .card {
    background: rgba(255, 255, 255, 0.03);
}

.dark-mode .footer {
    background: rgba(0, 0, 0, 0.7);
}

/* ---------- 响应式：平板及以下 ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.95);
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(233, 69, 96, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px 0;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-box input {
        width: 100%;
    }

    .about-content {
        gap: 30px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -26px;
        width: 10px;
        height: 10px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 480px) {
    .banner {
        min-height: 350px;
    }

    .banner-content h1 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 18px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid,
    .article-list {
        grid-template-columns: 1fr;
    }

    .partner-grid svg {
        width: 80px;
        height: 40px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .faq-question {
        font-size: 16px;
    }

    .howto-step {
        gap: 15px;
    }

    .howto-step::before {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 360px) {
    .banner-content h1 {
        font-size: 22px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    header,
    .banner,
    .back-to-top,
    .search-box,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        background: #f5f5f5;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .section-title {
        -webkit-text-fill-color: #e94560;
        color: #e94560;
    }
}

/* ---------- 辅助功能 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 高对比度模式 ---------- */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }

    .card {
        background: #111;
        border-color: #e94560;
    }

    a {
        color: #ff6b81;
    }

    .btn {
        background: #e94560;
        color: #fff;
    }
}