/* ===== 全局重置与基础 ===== */
*,
*::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: #1a1a2e;
    color: #ccc;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background: #0f3460;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #d6334a;
}

/* ===== 导航栏 (sticky) ===== */
#navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#navbar .logo-area {
    display: flex;
    align-items: center;
}

#navbar .logo-area svg {
    margin-right: 10px;
    flex-shrink: 0;
}

#navbar .logo-area span {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

#navbar .nav-links {
    display: flex;
    gap: 20px;
    color: #ccc;
    font-size: 14px;
}

#navbar .nav-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    position: relative;
    padding: 4px 0;
}

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

#navbar .nav-links a:hover {
    color: #e94560;
    transform: translateY(-1px);
}

#navbar .nav-links a:hover::after {
    width: 100%;
}

#navbar .nav-links a.active {
    color: #e94560;
}

#navbar .search-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

#navbar .search-area input {
    padding: 5px 15px;
    border-radius: 20px;
    border: none;
    background: #0f3460;
    color: #fff;
    width: 150px;
    outline: none;
    transition: width 0.3s, background 0.3s, box-shadow 0.3s;
}

#navbar .search-area input:focus {
    width: 200px;
    background: #1a1a2e;
    box-shadow: 0 0 0 2px #e94560;
}

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

#navbar .search-area button {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 5px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

#navbar .search-area button:hover {
    background: #d6334a;
    transform: scale(1.05);
}

/* ===== 面包屑 ===== */
nav[aria-label="Breadcrumb"] {
    background: #0f3460;
    padding: 10px 20px;
    font-size: 13px;
    color: #aaa;
    position: sticky;
    top: 60px;
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

nav[aria-label="Breadcrumb"] ol {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

nav[aria-label="Breadcrumb"] a {
    color: #e94560;
    transition: color 0.3s;
}

nav[aria-label="Breadcrumb"] a:hover {
    color: #ff6b81;
    text-decoration: underline;
}

nav[aria-label="Breadcrumb"] li[aria-current="page"] {
    color: #fff;
    font-weight: 500;
}

/* ===== 通用section样式 ===== */
section {
    padding: 50px 20px;
    transition: background 0.3s;
}

section > div {
    max-width: 1200px;
    margin: auto;
}

section h2 {
    color: #fff;
    font-size: 32px;
    border-left: 4px solid #e94560;
    padding-left: 15px;
    margin-bottom: 20px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, transparent);
    border-radius: 2px;
}

/* ===== Banner轮播 ===== */
#home {
    background: #1a1a2e;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

#home > div {
    max-width: 1200px;
    margin: auto;
    width: 100%;
}

#banner-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

#banner-slider > div {
    min-width: 100%;
    padding: 20px;
}

#banner-slider h1 {
    color: #fff;
    font-size: 48px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#banner-slider p {
    color: #ddd;
    font-size: 20px;
    margin: 20px 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

#banner-slider button {
    background: linear-gradient(135deg, #e94560, #d6334a);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

#banner-slider button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

#home .dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#home .dots span {
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

#home .dots span.active {
    background: #e94560;
    transform: scale(1.2);
}

#home .dots span:hover {
    background: #e94560;
}

/* ===== 品牌介绍 ===== */
#about {
    background: #16213e;
}

#about p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

#about .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

#about .card {
    background: #0f3460;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#about .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

#about .card h3 {
    color: #e94560;
    margin-bottom: 10px;
}

#about .card p {
    color: #aaa;
    font-size: 14px;
}

/* ===== 主营产品 / 片库 ===== */
#products {
    background: #1a1a2e;
}

#products .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

#products .card {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
    background: #1a1a2e;
}

#products .card h3 {
    color: #e94560;
    margin-bottom: 10px;
    font-size: 20px;
}

#products .card p {
    color: #ccc;
    font-size: 14px;
}

#products ul {
    color: #ccc;
    line-height: 2;
    padding-left: 20px;
}

#products ul li {
    position: relative;
    padding-left: 20px;
}

#products ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e94560;
    font-weight: bold;
}

/* ===== 解决方案 ===== */
#solutions {
    background: #16213e;
}

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

#solutions .card {
    background: #0f3460;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#solutions .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

#solutions .card h3 {
    color: #e94560;
    margin-bottom: 10px;
}

#solutions .card p {
    color: #ccc;
    font-size: 14px;
}

/* ===== 客户案例 ===== */
#cases {
    background: #1a1a2e;
}

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

#cases .card {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#cases .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
}

#cases .card h3 {
    color: #e94560;
    margin-bottom: 10px;
}

#cases .card p {
    color: #ccc;
    font-style: italic;
    line-height: 1.7;
}

/* ===== 影视资讯 ===== */
#news {
    background: #16213e;
}

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

#news article {
    background: #0f3460;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#news article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
}

#news article h3 {
    color: #e94560;
    font-size: 18px;
    margin-bottom: 8px;
}

#news article time {
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

#news article p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

#news article a {
    color: #e94560;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
}

#news article a:hover {
    color: #ff6b81;
    transform: translateX(3px);
}

/* ===== FAQ ===== */
#faq {
    background: #1a1a2e;
}

#faq > div {
    max-width: 800px;
    margin: auto;
}

#faq details {
    background: #16213e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#faq details:hover {
    background: #1a1a2e;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.1);
}

#faq details[open] {
    background: #1a1a2e;
}

#faq summary {
    color: #e94560;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    padding: 5px 0;
    transition: color 0.3s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::before {
    content: '▶';
    font-size: 12px;
    transition: transform 0.3s;
    color: #e94560;
}

#faq details[open] summary::before {
    transform: rotate(90deg);
}

#faq summary:hover {
    color: #ff6b81;
}

#faq details p {
    color: #ccc;
    margin-top: 10px;
    padding-left: 20px;
    line-height: 1.7;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HowTo 教程 ===== */
#howto {
    background: #16213e;
}

#howto > div {
    max-width: 800px;
    margin: auto;
}

#howto .content-box {
    background: #0f3460;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#howto h3 {
    color: #e94560;
    margin: 15px 0 8px;
    font-size: 18px;
}

#howto ul, #howto ol {
    color: #ccc;
    line-height: 1.8;
    padding-left: 20px;
}

#howto ul li, #howto ol li {
    margin-bottom: 5px;
    position: relative;
}

#howto ul li::before {
    content: '•';
    color: #e94560;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

#howto ol {
    counter-reset: step;
}

#howto ol li {
    counter-increment: step;
}

#howto ol li::before {
    content: counter(step) '.';
    color: #e94560;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* ===== 联系我们 ===== */
#contact {
    background: #1a1a2e;
}

#contact .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: #16213e;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#contact .grid > div {
    padding: 10px;
}

#contact h3 {
    color: #e94560;
    margin-bottom: 12px;
    font-size: 18px;
}

#contact p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== Footer ===== */
footer {
    background: #0f3460;
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

footer > div {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer a {
    color: #e94560;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff6b81;
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}

/* ===== 返回顶部 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e94560, #d6334a);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    border: none;
    outline: none;
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

#backToTop.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    #navbar .nav-links {
        gap: 12px;
        font-size: 13px;
    }

    #navbar .search-area input {
        width: 120px;
    }

    #navbar .search-area input:focus {
        width: 160px;
    }

    #banner-slider h1 {
        font-size: 36px;
    }

    #banner-slider p {
        font-size: 18px;
    }

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

@media (max-width: 768px) {
    #navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    #navbar .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 15px;
        font-size: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    #navbar .search-area {
        order: 2;
        margin-left: auto;
    }

    #navbar .search-area input {
        width: 100px;
    }

    #navbar .search-area input:focus {
        width: 140px;
    }

    nav[aria-label="Breadcrumb"] {
        top: auto;
        position: relative;
        top: 0;
    }

    #banner-slider h1 {
        font-size: 28px;
    }

    #banner-slider p {
        font-size: 16px;
    }

    #banner-slider button {
        font-size: 16px;
        padding: 10px 24px;
    }

    section {
        padding: 30px 15px;
    }

    section h2 {
        font-size: 24px;
    }

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

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

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

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

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

    #contact .grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    footer > div {
        flex-direction: column;
        gap: 10px;
    }

    #backToTop {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    #faq details {
        padding: 12px;
    }

    #howto .content-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #navbar .logo-area span {
        font-size: 16px;
    }

    #navbar .search-area input {
        width: 80px;
    }

    #navbar .search-area input:focus {
        width: 120px;
    }

    #banner-slider h1 {
        font-size: 24px;
    }

    #banner-slider p {
        font-size: 14px;
    }

    #banner-slider button {
        font-size: 14px;
        padding: 8px 20px;
    }

    section h2 {
        font-size: 20px;
    }

    #home .dots span {
        width: 10px;
        height: 10px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===== 暗色模式增强 ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
        color: #ccc;
    }

    #navbar {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
    }

    #home {
        background: #1a1a2e;
    }

    #about {
        background: #16213e;
    }

    #products {
        background: #1a1a2e;
    }

    #solutions {
        background: #16213e;
    }

    #cases {
        background: #1a1a2e;
    }

    #news {
        background: #16213e;
    }

    #faq {
        background: #1a1a2e;
    }

    #howto {
        background: #16213e;
    }

    #contact {
        background: #1a1a2e;
    }

    footer {
        background: #0f3460;
    }
}

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

/* ===== 打印样式 ===== */
@media print {
    #navbar,
    #backToTop,
    #home .dots,
    .search-area {
        display: none !important;
    }

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

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

    a {
        color: #000;
        text-decoration: underline;
    }
}