/* 开云 - Kaiyun官方网站 完整样式表 */
/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

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

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: #fff;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

body.dark .section-title p {
    color: #94a3b8;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

body.dark .card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 网格系统 */
.grid {
    display: grid;
    gap: 30px;
}

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

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

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

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

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

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

.gap-20 {
    gap: 20px;
}

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

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

/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

body.dark .site-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container.flex {
    justify-content: space-between;
    height: 70px;
}

.site-header a[href="/"] {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.site-header a[href="/"] span {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark .main-nav a {
    color: #e2e8f0;
}

.main-nav a:hover {
    color: #1a73e8;
}

#darkToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    color: #1e293b;
}

body.dark #darkToggle {
    color: #e2e8f0;
}

#darkToggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark #darkToggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1e293b;
}

body.dark .mobile-menu-btn {
    color: #e2e8f0;
}

.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .mobile-nav {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
}

body.dark .mobile-nav a {
    color: #e2e8f0;
}

/* Hero 区域 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
}

body.dark .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.1) 0%, transparent 70%);
}

.hero::after {
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 71, 161, 0.08) 0%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: #475569;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark .hero p {
    color: #94a3b8;
}

.hero .flex.gap-20 {
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero 轮播 */
.hero-carousel {
    margin-top: 60px;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    opacity: 0;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    opacity: 0;
}

.carousel-slide > div {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.carousel-slide h3 {
    font-size: 28px;
    margin: 20px 0 10px;
}

.carousel-slide p {
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.carousel-dot.active {
    opacity: 1;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f1f5f9;
    padding: 12px 0;
    font-size: 14px;
}

body.dark .breadcrumb {
    background: #1e293b;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #64748b;
}

body.dark .breadcrumb .current {
    color: #94a3b8;
}

/* 企业简介区域 */
#about .grid-2 {
    align-items: center;
}

#about p {
    font-size: 17px;
    color: #475569;
    margin-bottom: 20px;
}

body.dark #about p {
    color: #94a3b8;
}

#about .about-image {
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

body.dark #about .about-image {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

#about .about-image p {
    margin-top: 20px;
    font-weight: 600;
    color: #1a73e8;
}

/* 品牌故事 */
#brand-story {
    background: #f1f5f9;
}

body.dark #brand-story {
    background: #0f172a;
}

/* 企业文化 */
#culture .grid-4 .card {
    text-align: center;
}

#culture .grid-4 .card h3 {
    margin: 12px 0 8px;
}

#culture .grid-4 .card p {
    color: #64748b;
    font-size: 14px;
}

body.dark #culture .grid-4 .card p {
    color: #94a3b8;
}

/* 核心产品 */
#product {
    background: #f1f5f9;
}

body.dark #product {
    background: #0f172a;
}

#product .card h3 {
    margin: 15px 0 10px;
}

#product .card p {
    color: #64748b;
}

body.dark #product .card p {
    color: #94a3b8;
}

/* 产品优势 */
#advantages .grid-2 .card.flex {
    gap: 20px;
}

#advantages .grid-2 .card h3 {
    margin-bottom: 5px;
}

#advantages .grid-2 .card p {
    color: #64748b;
}

body.dark #advantages .grid-2 .card p {
    color: #94a3b8;
}

/* 服务体系 */
#service {
    background: #f1f5f9;
}

body.dark #service {
    background: #0f172a;
}

#service .card h3 {
    margin: 12px 0 8px;
}

#service .card p {
    color: #64748b;
}

body.dark #service .card p {
    color: #94a3b8;
}

/* 行业解决方案 */
#solutions .card h3 {
    margin: 12px 0 8px;
}

#solutions .card p {
    color: #64748b;
}

body.dark #solutions .card p {
    color: #94a3b8;
}

/* 应用场景 */
#scenarios {
    background: #f1f5f9;
}

body.dark #scenarios {
    background: #0f172a;
}

#scenarios .card h3 {
    margin: 12px 0 8px;
}

#scenarios .card p {
    color: #64748b;
    font-size: 14px;
}

body.dark #scenarios .card p {
    color: #94a3b8;
}

/* 数据展示 */
#data .card {
    text-align: center;
}

#data .counter {
    font-size: 48px;
    font-weight: 800;
    color: #1a73e8;
    display: block;
}

#data .card p {
    color: #64748b;
    margin-top: 8px;
}

body.dark #data .card p {
    color: #94a3b8;
}

/* 成功案例 */
#cases {
    background: #f1f5f9;
}

body.dark #cases {
    background: #0f172a;
}

#cases .card h3 {
    margin: 15px 0 10px;
}

#cases .card p {
    color: #64748b;
}

body.dark #cases .card p {
    color: #94a3b8;
}

/* 合作客户 */
#clients .flex-wrap {
    justify-content: center;
}

#clients .client-badge {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px 30px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s;
}

body.dark #clients .client-badge {
    background: #1e293b;
    color: #94a3b8;
}

#clients .client-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 客户评价 */
#testimonials {
    background: #f1f5f9;
}

body.dark #testimonials {
    background: #0f172a;
}

#testimonials .card .testimonial-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

#testimonials .card .testimonial-header strong {
    display: block;
}

#testimonials .card .testimonial-header span {
    color: #64748b;
    font-size: 13px;
}

body.dark #testimonials .card .testimonial-header span {
    color: #94a3b8;
}

#testimonials .card p {
    color: #475569;
}

body.dark #testimonials .card p {
    color: #e2e8f0;
}

/* 新闻中心 */
#news .card .news-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

#news .card:nth-child(2) .news-image {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
}

#news .card:nth-child(3) .news-image {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

#news .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

#news .card p {
    color: #64748b;
    font-size: 14px;
}

body.dark #news .card p {
    color: #94a3b8;
}

#news .card .news-date {
    color: #94a3b8;
    font-size: 13px;
}

/* 最新文章 */
#articles {
    background: #f1f5f9;
}

body.dark #articles {
    background: #0f172a;
}

#articles .card h3 {
    margin-bottom: 10px;
}

#articles .card p {
    color: #64748b;
}

body.dark #articles .card p {
    color: #94a3b8;
}

#articles .card .article-meta {
    color: #94a3b8;
    font-size: 13px;
}

/* 热门推荐 */
#hot .card h3 {
    margin: 12px 0 8px;
}

#hot .card p {
    color: #64748b;
    font-size: 14px;
}

body.dark #hot .card p {
    color: #94a3b8;
}

/* FAQ */
#faq {
    background: #f1f5f9;
}

body.dark #faq {
    background: #0f172a;
}

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

.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 17px;
}

.faq-icon {
    font-size: 22px;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #64748b;
}

body.dark .faq-answer {
    color: #94a3b8;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

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

/* HowTo */
#howto .card h3 {
    margin: 12px 0 8px;
}

#howto .card p {
    color: #64748b;
}

body.dark #howto .card p {
    color: #94a3b8;
}

/* 联系我们 */
#contact {
    background: #f1f5f9;
}

body.dark #contact {
    background: #0f172a;
}

#contact .card p {
    margin-bottom: 8px;
}

#contact .card strong {
    font-weight: 600;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.3s;
}

body.dark #contact form input,
body.dark #contact form textarea {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

#contact form input:focus,
#contact form textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

#contact form textarea {
    resize: vertical;
}

#contact form .btn {
    width: 100%;
}

/* 网站地图 */
#sitemap .grid-4 div {
    font-size: 15px;
}

#sitemap .grid-4 strong {
    display: block;
    margin-bottom: 8px;
}

#sitemap .grid-4 a {
    color: #1a73e8;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

#sitemap .grid-4 a:hover {
    text-decoration: underline;
}

/* 友情链接 */
#links {
    background: #f1f5f9;
    padding: 40px 0;
}

body.dark #links {
    background: #0f172a;
}

#links .flex-wrap {
    justify-content: center;
    font-size: 14px;
    color: #64748b;
}

body.dark #links .flex-wrap {
    color: #94a3b8;
}

#links a {
    color: #1a73e8;
    text-decoration: none;
}

#links a:hover {
    text-decoration: underline;
}

/* 搜索入口 */
#search {
    padding: 40px 0;
}

#search .search-box {
    max-width: 500px;
    margin: 0 auto;
}

#search input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
    color: #1e293b;
}

body.dark #search input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

#search input:focus {
    border-color: #1a73e8;
}

#search button {
    margin-top: 10px;
    padding: 10px 30px;
    border-radius: 30px;
    border: none;
    background: #1a73e8;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

#search button:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 0 30px;
}

footer .grid-4 {
    margin-bottom: 40px;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

footer p {
    font-size: 14px;
    color: #94a3b8;
}

footer a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

footer a:hover {
    color: #1a73e8;
}

footer .footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

footer .footer-bottom p {
    margin-top: 5px;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

#backToTop.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

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

    .section-title p {
        font-size: 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-carousel {
        height: 280px;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-nav.active {
        display: block;
    }

    #about .grid-2 {
        gap: 20px;
    }

    #about p {
        font-size: 15px;
    }

    .card {
        padding: 20px;
    }

    .counter {
        font-size: 36px !important;
    }

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

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    #sitemap .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-carousel {
        height: 220px;
    }

    .carousel-slide h3 {
        font-size: 22px;
    }

    .carousel-slide p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    #sitemap .grid-4 {
        grid-template-columns: 1fr;
    }

    #contact .grid-2 {
        gap: 20px;
    }
}

/* 暗色模式额外调整 */
body.dark .hero-carousel {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.dark .breadcrumb {
    border-bottom: 1px solid #1e293b;
}

body.dark .faq-item.card {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark #contact form input,
body.dark #contact form textarea {
    border-color: #334155;
}

body.dark #search input {
    border-color: #334155;
}

/* 动画增强 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* 卡片悬停效果增强 */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

body.dark .card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

/* 导航链接下划线动画 */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* 按钮点击效果 */
.btn:active {
    transform: scale(0.97);
}

/* 表单输入框聚焦效果 */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* 打印样式 */
@media print {
    .site-header,
    #backToTop,
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }

    .hero {
        padding: 40px 0;
    }

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

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}