/* 黑桃视频 - 完整CSS样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

/* 导航栏 */
nav#navbar {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 0.8rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    filter: drop-shadow(0 2px 8px rgba(233, 69, 96, 0.4));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

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

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

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

#darkModeToggle, #mobileMenuBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#darkModeToggle:hover, #mobileMenuBtn:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    transform: scale(1.1);
}

#mobileMenuBtn {
    display: none;
}

/* 面包屑 */
.breadcrumb {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #aaa;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    max-width: 1200px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;
    padding: 5rem 3rem;
    color: #fff;
    text-align: center;
    min-height: 380px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.15), transparent 50%);
    pointer-events: none;
}

.slide.active {
    display: flex;
}

.slide-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.slide h1, .slide h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover::before {
    left: 100%;
}

.carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-controls button:hover {
    background: rgba(233, 69, 96, 0.5);
    border-color: #e94560;
    transform: translateY(-50%) scale(1.1);
}

.carousel-controls .prev { left: 1.5rem; }
.carousel-controls .next { right: 1.5rem; }

.carousel-indicators {
    text-align: center;
    padding: 1.2rem;
    position: relative;
    z-index: 10;
}

.carousel-indicators span {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicators span.active {
    background: #e94560;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

.carousel-indicators span:hover {
    background: rgba(233, 69, 96, 0.7);
    transform: scale(1.1);
}

/* 通用区域样式 */
section {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 0.8rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.8rem;
    color: #16213e;
    transition: color 0.3s ease;
}

h4 {
    font-size: 1.15rem;
    margin: 0.5rem 0;
    color: #0f3460;
}

/* 网格布局 */
.about-grid, .products-grid, .solutions-grid, .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-grid article, .products-grid article, .solutions-grid article, .cases-grid article {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-grid article:hover, .products-grid article:hover, .solutions-grid article:hover, .cases-grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 69, 96, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

.about-grid p, .products-grid p, .solutions-grid p, .cases-grid p {
    color: #555;
    line-height: 1.8;
}

/* 新闻中心 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.news-grid article {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.news-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.news-grid time {
    color: #999;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.8rem;
}

.read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
    transform: translateX(5px);
}

/* FAQ */
.faq-list details {
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-list details:hover {
    border-color: rgba(233, 69, 96, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

.faq-list details[open] {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.1);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a2e;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.faq-list details[open] summary {
    color: #e94560;
}

.faq-list p {
    margin-top: 0.8rem;
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.8;
}

/* HowTo */
.howto-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.howto-content ol {
    margin-left: 1.8rem;
    margin-top: 1rem;
}

.howto-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #444;
}

.howto-content strong {
    color: #1a1a2e;
}

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

.contact-grid div {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-grid div:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(233, 69, 96, 0.2);
}

.contact-grid p {
    margin-bottom: 0.8rem;
    color: #555;
}

.contact-grid strong {
    color: #1a1a2e;
}

/* 友情链接 */
#links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#links a {
    color: #e94560;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

#links a:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: #e94560;
    color: #c0392b;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: #e94560;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #fff;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* 测试评价 */
.testimonials {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonials h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e94560;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 12px 12px 0;
    color: #555;
    line-height: 1.7;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 2rem;
    color: #e94560;
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
    opacity: 0.5;
}

/* 暗色模式 */
body.dark-mode {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    color: #e0e0e0;
}

body.dark-mode section {
    background: rgba(22, 33, 62, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode h2 {
    color: #e94560;
}

body.dark-mode h3 {
    color: #ddd;
}

body.dark-mode .about-grid article,
body.dark-mode .products-grid article,
body.dark-mode .solutions-grid article,
body.dark-mode .cases-grid article {
    background: rgba(30, 40, 70, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .about-grid article:hover,
body.dark-mode .products-grid article:hover,
body.dark-mode .solutions-grid article:hover,
body.dark-mode .cases-grid article:hover {
    background: rgba(40, 50, 80, 0.8);
    border-color: rgba(233, 69, 96, 0.3);
}

body.dark-mode .about-grid p,
body.dark-mode .products-grid p,
body.dark-mode .solutions-grid p,
body.dark-mode .cases-grid p {
    color: #bbb;
}

body.dark-mode .news-grid article {
    background: rgba(30, 40, 70, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .news-grid article:hover {
    background: rgba(40, 50, 80, 0.7);
    border-color: rgba(233, 69, 96, 0.2);
}

body.dark-mode .faq-list details {
    background: rgba(30, 40, 70, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .faq-list details[open] {
    border-color: #e94560;
    background: rgba(40, 50, 80, 0.6);
}

body.dark-mode .faq-list summary {
    color: #ddd;
}

body.dark-mode .faq-list p {
    color: #bbb;
}

body.dark-mode .howto-content {
    background: rgba(30, 40, 70, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .howto-content li,
body.dark-mode .howto-content p {
    color: #bbb;
}

body.dark-mode .howto-content strong {
    color: #e94560;
}

body.dark-mode .contact-grid div {
    background: rgba(30, 40, 70, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .contact-grid p {
    color: #bbb;
}

body.dark-mode .contact-grid strong {
    color: #e94560;
}

body.dark-mode .testimonials {
    background: rgba(30, 40, 70, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode blockquote {
    background: rgba(40, 50, 80, 0.3);
    color: #bbb;
    border-left-color: #e94560;
}

body.dark-mode #links a {
    background: rgba(30, 40, 70, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ff6b6b;
}

body.dark-mode #links a:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
}

/* 响应式 */
@media (max-width: 1024px) {
    .slide h1, .slide h2 {
        font-size: 2.2rem;
    }
    
    section {
        margin: 2rem 1rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.2rem;
        gap: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

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

    .nav-links a {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mobileMenuBtn {
        display: block;
    }

    .slide {
        padding: 3rem 1.5rem;
        min-height: 300px;
    }

    .slide h1, .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }

    .carousel-controls button {
        padding: 0.5rem 0.8rem;
        font-size: 1.5rem;
    }

    .carousel-controls .prev { left: 0.8rem; }
    .carousel-controls .next { right: 0.8rem; }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .about-grid, .products-grid, .solutions-grid, .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    #backToTop {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    nav#navbar {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .slide h1, .slide h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 1.5rem;
        margin: 1.5rem 0.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* 滚动动画支持 */
@media (prefers-reduced-motion: reduce) {
    section {
        opacity: 1 !important;
        transform: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}