/* 红桃视频 - 完整样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

body {
    background: #f8f9fa;
    color: #222;
    line-height: 1.7;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

/* 头部 */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

body.dark header {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #c0392b;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s;
}

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

.logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: rotate(-5deg);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

body.dark nav a {
    color: #ccc;
}

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

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #c0392b;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

body.dark .menu-toggle {
    color: #ccc;
}

/* Hero 区域 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #c0392b, #e74c3c, #ff6b6b, #c0392b);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero .btn {
    display: inline-block;
    background: #fff;
    color: #c0392b;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero .btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

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

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

.section-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #c0392b;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c0392b;
    margin: 10px auto 0;
    border-radius: 2px;
}

body.dark .section-title {
    color: #e74c3c;
}

body.dark .section-title::after {
    background: #e74c3c;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

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

/* 卡片 - 圆角卡片 + 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark .card {
    background: rgba(30, 42, 58, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

body.dark .card:hover {
    background: rgba(30, 42, 58, 0.9);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #c0392b;
    transition: color 0.3s;
}

.card:hover h3 {
    color: #e74c3c;
}

body.dark .card h3 {
    color: #e74c3c;
}

body.dark .card:hover h3 {
    color: #ff6b6b;
}

.card p {
    color: #555;
    font-size: 15px;
    transition: color 0.3s;
}

body.dark .card p {
    color: #b0b0b0;
}

.card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    fill: #c0392b;
    transition: transform 0.3s, fill 0.3s;
}

.card:hover svg {
    transform: scale(1.15);
    fill: #e74c3c;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

body.dark .faq-item {
    border-bottom: 1px solid #2c3e50;
}

.faq-item:hover {
    background: rgba(192, 57, 43, 0.03);
}

body.dark .faq-item:hover {
    background: rgba(231, 76, 60, 0.05);
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item:hover .faq-question {
    color: #c0392b;
}

.faq-question::after {
    content: "+";
    font-size: 22px;
    transition: transform 0.3s;
    color: #c0392b;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #555;
    padding-top: 0;
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

/* 教程步骤 */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    padding: 18px 0 18px 50px;
    position: relative;
    border-left: 3px solid #c0392b;
    margin-left: 20px;
    transition: background 0.3s;
    border-radius: 0 8px 8px 0;
}

.howto-steps li:hover {
    background: rgba(192, 57, 43, 0.03);
}

body.dark .howto-steps li:hover {
    background: rgba(231, 76, 60, 0.05);
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: -18px;
    top: 18px;
    background: #c0392b;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
}

.howto-steps li:hover::before {
    transform: scale(1.1);
    background: #e74c3c;
}

.howto-steps li:last-child {
    border-left: 3px solid transparent;
}

/* 文章列表 */
.article-list .article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    transition: transform 0.3s, background 0.3s;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    opacity: 0;
    transform: translateX(-20px);
}

.article-item.visible {
    opacity: 1;
    transform: translateX(0);
    animation: articleSlideIn 0.5s ease forwards;
}

@keyframes articleSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.dark .article-list .article-item {
    border-bottom: 1px solid #2c3e50;
}

.article-item:hover {
    transform: translateX(5px);
    background: rgba(192, 57, 43, 0.02);
}

body.dark .article-item:hover {
    background: rgba(231, 76, 60, 0.03);
}

.article-item .date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px;
}

.article-item .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.article-item .title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark .article-item .title a {
    color: #e0e0e0;
}

.article-item .title a:hover {
    color: #c0392b;
}

.article-item .summary {
    color: #666;
    font-size: 15px;
}

body.dark .article-item .summary {
    color: #aaa;
}

.article-item .read-more {
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-item .read-more:hover {
    gap: 8px;
}

/* 客户评价 */
.testimonial {
    text-align: center;
    padding: 30px;
    background: rgba(241, 243, 245, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial.visible {
    opacity: 1;
    transform: translateY(0);
    animation: testimonialFadeIn 0.6s ease forwards;
}

@keyframes testimonialFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark .testimonial {
    background: rgba(30, 42, 58, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.testimonial p {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 12px;
}

.testimonial .author {
    font-weight: 600;
    color: #c0392b;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}

.contact-info div:hover {
    transform: translateX(5px);
}

.contact-info svg {
    width: 24px;
    height: 24px;
    fill: #c0392b;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.contact-info div:hover svg {
    transform: scale(1.15);
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 30px;
    margin-top: 50px;
}

footer a {
    color: #c0392b;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

footer a:hover {
    text-decoration: underline;
    color: #e74c3c;
    padding-left: 3px;
}

footer .grid-4 {
    color: #ccc;
}

footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #c0392b;
    margin-top: 5px;
    border-radius: 1px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2c3e50;
    margin-top: 30px;
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #c0392b;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    background: #e74c3c;
}

/* 响应式布局 - PC + 手机自适应 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }
    
    body.dark nav {
        background: rgba(22, 33, 62, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .menu-toggle {
        display: block;
    }
    
    .article-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* 滚动动画通用类 */
.card, .testimonial, .article-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible, .testimonial.visible, .article-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 暗色模式下的额外调整 */
body.dark .card p,
body.dark .faq-answer,
body.dark .article-item .summary {
    color: #b0b0b0;
}

body.dark .article-item .date {
    color: #888;
}

body.dark .testimonial p {
    color: #ddd;
}