/* ============================================================
   style.css - 开云(kaiyun)官网 - 开云登录入口
   完整样式表 - 内联版本
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0a1a;
    color: #e0e0f0;
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body:not(.dark-mode) {
    background: #f5f5ff;
    color: #1a1a2e;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

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

/* ---------- Header & Navigation ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease, border-color 0.4s ease;
}

body:not(.dark-mode) header {
    background: rgba(245, 245, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6c63ff;
}

.nav-links a.active {
    color: #6c63ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c63ff;
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle,
.dark-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.search-toggle:hover,
.dark-toggle:hover,
.menu-toggle:hover {
    background: rgba(108, 99, 255, 0.15);
}

.menu-toggle {
    display: none;
}

/* ---------- Search Overlay ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.open {
    display: flex;
    opacity: 1;
}

.search-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 16px 32px;
    width: 80%;
    max-width: 600px;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.search-box:focus {
    border-color: #6c63ff;
    background: rgba(255, 255, 255, 0.12);
}

body:not(.dark-mode) .search-box {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body:not(.dark-mode) .search-box:focus {
    border-color: #6c63ff;
    background: rgba(0, 0, 0, 0.08);
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.4rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.search-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* ---------- Main & Sections ---------- */
main {
    padding-top: 80px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body:not(.dark-mode) section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
}

body:not(.dark-mode) .hero {
    background: linear-gradient(135deg, #e8e8ff 0%, #f0f0ff 50%, #e8e8ff 100%);
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    z-index: 2;
    width: 100%;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.35);
}

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

body:not(.dark-mode) .btn-outline {
    border-color: #6c63ff;
    color: #6c63ff;
}

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.08);
}

.hero-visual {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

/* ---------- Banner Slider ---------- */
.hero-banner-slider {
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: rgba(108, 99, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark-mode) .hero-banner-slider {
    background: rgba(108, 99, 255, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
}

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

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

.banner-slide svg {
    width: 80%;
    height: 80%;
    max-width: 300px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.banner-dots span.active {
    background: #6c63ff;
    transform: scale(1.2);
}

.banner-dots span:hover {
    background: #6c63ff;
}

/* ---------- Section Titles ---------- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 30px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
}

body:not(.dark-mode) .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.18);
}

.glass-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.glass-card p {
    opacity: 0.8;
    line-height: 1.7;
}

/* ---------- Grid Layouts ---------- */
.brand-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

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

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* ---------- Story Timeline ---------- */
.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.story-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.story-year {
    font-size: 2rem;
    font-weight: 700;
    color: #6c63ff;
    min-width: 80px;
    line-height: 1.2;
}

.story-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px 28px;
    border-radius: 20px;
    border-left: 4px solid #6c63ff;
    transition: background 0.3s ease;
}

body:not(.dark-mode) .story-content {
    background: rgba(108, 99, 255, 0.04);
}

.story-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.story-content p {
    opacity: 0.8;
    line-height: 1.7;
}

/* ---------- Team Card ---------- */
.team-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.dark-mode) .team-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.04);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(108, 99, 255, 0.12);
}

.team-card svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    padding: 8px;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.team-card p {
    opacity: 0.75;
    font-size: 0.95rem;
}

/* ---------- Client Grid ---------- */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.client-item svg {
    width: 100px;
    height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-item svg:hover {
    opacity: 1;
    transform: scale(1.05);
}

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

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

body:not(.dark-mode) .faq-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    gap: 12px;
}

.faq-question span {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    opacity: 0.8;
    padding-top: 0;
    line-height: 1.7;
}

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

/* ---------- HowTo Steps ---------- */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.howto-step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    counter-increment: step;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.dark-mode) .howto-step {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.04);
}

.howto-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(108, 99, 255, 0.1);
}

.howto-step::before {
    content: counter(step);
    font-size: 2rem;
    font-weight: 700;
    color: #6c63ff;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.howto-step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.howto-step p {
    opacity: 0.8;
    line-height: 1.6;
}

/* ---------- Stats Numbers ---------- */
.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #6c63ff;
    line-height: 1.2;
}

.stats-grid p {
    font-size: 1rem;
    opacity: 0.75;
    margin-top: 8px;
}

/* ---------- Related Links ---------- */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.related-links a {
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.1);
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.related-links a:hover {
    background: rgba(108, 99, 255, 0.25);
    color: #fff;
}

body:not(.dark-mode) .related-links a:hover {
    color: #6c63ff;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.6;
}

.breadcrumb span {
    margin: 0 6px;
}

/* ---------- Footer ---------- */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-links p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: opacity 0.3s;
}

.footer-links p:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

body:not(.dark-mode) .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.35);
}

/* ---------- Scroll Animation ---------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Industry Grid Inner ---------- */
.industry-grid .glass-card {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 30px 20px;
}

/* ---------- Article & News Inner ---------- */
.news-grid article h3,
.article-grid .glass-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-grid article p,
.article-grid .glass-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-banner-slider {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    body:not(.dark-mode) .nav-links {
        background: rgba(245, 245, 255, 0.96);
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-banner-slider {
        height: 260px;
        max-width: 100%;
    }

    .story-item {
        flex-direction: column;
        gap: 12px;
    }

    .story-year {
        min-width: auto;
        font-size: 1.6rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    section {
        padding: 60px 0;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .search-close {
        top: 24px;
        right: 24px;
        font-size: 2rem;
    }

    .search-box {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .brand-intro-grid,
    .product-grid,
    .solution-grid,
    .case-grid,
    .testimonial-grid,
    .news-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid,
    .advantage-list,
    .industry-grid,
    .stats-grid,
    .contact-grid,
    .howto-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 480px) {
    .culture-grid,
    .advantage-list,
    .industry-grid,
    .stats-grid,
    .contact-grid,
    .howto-steps,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .hero-banner-slider {
        height: 220px;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ---------- Utility ---------- */
::selection {
    background: #6c63ff;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: #6c63ff;
    border-radius: 4px;
}

body:not(.dark-mode) ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

/* ---------- Print ---------- */
@media print {
    header,
    .back-to-top,
    .search-overlay {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .hero {
        background: #f5f5ff !important;
    }
    .glass-card {
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
        background: #fff !important;
    }
}