/* ============================================
   style.css - 亚博 | Yabo亚博官方网站
   版本: 1.0
   描述: 完整样式文件，包含UI设计、响应式、暗色模式、动画等
   ============================================ */

/* ===== 基础重置与变量 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 暗色模式 */
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #ffd700;
    --accent2: #e6b800;
    --text: #e0e0e0;
    --text2: #a0a0a0;
    --bg: #0f0f1a;
    --card: #1e1e36;
    --glass: rgba(30, 30, 54, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: 0.3s ease;
    --header-height: 60px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 亮色模式变量 */
.light {
    --primary: #ffffff;
    --secondary: #f5f5f5;
    --accent: #c9a200;
    --accent2: #b8960e;
    --text: #1a1a2e;
    --text2: #4a4a6a;
    --bg: #f0f0f5;
    --card: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== 全局样式 ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent2);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* ===== 工具类 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== 头部导航 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: background var(--transition);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.logo svg {
    width: 120px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #0f0f1a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text2);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.6);
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text2);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--card);
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text2);
}

/* ===== 品牌故事 ===== */
.brand-story {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    color: var(--text2);
    margin-bottom: 1rem;
}

/* ===== 企业文化 ===== */
.culture-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.culture-item {
    text-align: center;
    padding: 2rem 1rem;
}

.culture-item svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    fill: var(--accent);
}

/* ===== 核心团队 ===== */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.team-card h4 {
    color: var(--accent);
}

.team-card p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ===== 产品中心 ===== */
.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
    text-align: center;
    padding: 2rem 1rem;
}

.product-card svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    fill: var(--accent);
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text2);
    font-size: 0.95rem;
}

/* ===== 产品优势 ===== */
.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.advantage-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.advantage-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== 服务支持 ===== */
.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

.service-card svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    fill: var(--accent);
}

/* ===== 解决方案 ===== */
.solution-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.solution-item {
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: transform var(--transition);
}

.solution-item:hover {
    transform: translateX(4px);
}

/* ===== 应用行业 ===== */
.industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.industry-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card);
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.industry-item:hover {
    transform: scale(1.05);
}

.industry-item svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    fill: var(--accent);
}

/* ===== 数据展示 ===== */
.data-showcase {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.data-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.data-item {
    text-align: center;
    padding: 1.5rem;
}

.data-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.data-item .label {
    color: var(--text2);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== 客户案例 ===== */
.case-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.case-card {
    overflow: hidden;
}

.case-card .case-img {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.case-card .case-body {
    padding: 1.25rem;
}

.case-card .case-body h4 {
    margin-bottom: 0.5rem;
}

.case-card .case-body p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ===== 合作伙伴 ===== */
.partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--card);
    border-radius: var(--radius);
    height: 80px;
    font-weight: 600;
    color: var(--text2);
    transition: all var(--transition);
}

.partner-item:hover {
    color: var(--accent);
    background: var(--secondary);
    transform: scale(1.05);
}

/* ===== 客户评价 ===== */
.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: serif;
}

.testimonial-card p {
    color: var(--text2);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--accent);
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--text2);
}

/* ===== 新闻中心 ===== */
.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card .news-img {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
}

.news-card .news-body {
    padding: 1.25rem;
}

.news-card .news-body .date {
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

.news-card .news-body h4 {
    margin-bottom: 0.5rem;
}

.news-card .news-body p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ===== 常见问题 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question .arrow {
    transition: transform var(--transition);
    font-size: 0.8rem;
}

.faq-question.open .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--text2);
    font-size: 0.95rem;
}

.faq-answer.open {
    max-height: 300px;
    padding: 1rem 1.5rem;
}

/* ===== 使用指南 ===== */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.howto-step .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.howto-step .step-text {
    padding-top: 0.5rem;
}

.howto-step .step-text h4 {
    margin-bottom: 0.25rem;
}

.howto-step .step-text p {
    color: var(--text2);
    font-size: 0.95rem;
}

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 0.95rem;
    transition: border var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== 网站地图 ===== */
.sitemap-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sitemap-col h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.sitemap-col a {
    display: block;
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.sitemap-col a:hover {
    color: var(--accent);
}

/* ===== 页脚 ===== */
footer {
    background: var(--primary);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text2);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

footer .footer-links a {
    color: var(--text2);
    font-size: 0.85rem;
}

footer .footer-links a:hover {
    color: var(--accent);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: all var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* ===== 搜索弹窗 ===== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal.open {
    display: flex;
}

.search-modal .search-box {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
}

.search-modal input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.search-modal .close-search {
    margin-top: 1rem;
    text-align: center;
    color: var(--text2);
    cursor: pointer;
}

/* ===== 动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ===== 亮色模式覆盖 ===== */
.light .hero {
    background: linear-gradient(135deg, #ffffff, #f0f0f5, #e8e8f0);
}

.light .brand-story {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.light .data-showcase {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.light .hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(201, 162, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(201, 162, 0, 0.03) 0%, transparent 50%);
}

.light .hero-slide::after {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 响应式设计 ===== */

/* 平板及以下 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    nav.open {
        display: flex;
    }

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

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .data-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .header-inner {
        padding: 0.5rem 1rem;
    }

    .logo svg {
        width: 100px;
    }

    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* 大屏优化 */
@media (min-width: 1200px) {
    .hero-content {
        max-width: 900px;
    }

    .about-grid {
        gap: 4rem;
    }
}

/* ===== 打印样式 ===== */
@media print {
    header,
    .back-to-top,
    .search-modal,
    .hero-carousel {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}