/* 全局样式 */
:root {
    --primary-color: #e60000;
    --secondary-color: #8a0000;
    --accent-color: #ff3333;
    --text-color: #f0f0f0;
    --light-text: #cccccc;
    --background-color: #121212;
    --light-background: #1e1e1e;
    --border-color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

/* Bootstrap 兼容样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mb-3 {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
}

/* 导航栏样式 */
.navbar {
    background-color: #000000;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-container i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.logo-container:hover i {
    transform: rotate(180deg);
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand {
    text-decoration: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    
}

.navbar-collapse {
    background-color: #000000;
}

.navbar-collapse.show {
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 1rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #000000;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(230,0,0,0.3);
        z-index: 9999;
        display: none;  /* 默认隐藏 */
    }

    .navbar-collapse.show {
        display: block;  /* 显示时改为block */
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        font-size: 1.1rem;
        color: var(--text-color);
    }

    .nav-link:hover {
        background-color: var(--light-background);
        border-radius: 4px;
    }

    .navbar-toggler {
        position: relative;
        z-index: 9999;
    }
}

/* 演示页面样式 */
.page-header {
    padding: 120px 0 60px;
    background-color: var(--light-background);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--light-text);
}

.demo-content {
    padding: 60px 0;
}

.demo-section {
    margin-bottom: 60px;
}

.demo-section h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.demo-card {
    background-color: #000000;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
    transition: transform 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-5px);
}

.demo-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.demo-card img {
    border-radius: 4px;
    margin-top: 1rem;
}

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

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

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

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    background-color: #000000;
    border: none;
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--light-background);
    color: #f76464;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.75rem 2rem;
}

/* 首页横幅样式 */
.hero {
    padding: 120px 0 80px;
    background-color: var(--light-background);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(230, 0, 0, 0.2);
}

.service-description h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.hero .subtitle {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    padding: 0.75rem 2rem;
}

/* 平台Logo样式 */
.platform-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background-color: transparent;
    border-radius: 12px;
}

.platform-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(230, 0, 0, 0.2);
}

.platform-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(230, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.7);
}

.platform-logo i {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.platform-logo span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 为不同平台设置特定颜色 */
.platform-logo:nth-child(1) i {
    color: #e60000; /* 红色 */
}

.platform-logo:nth-child(2) i {
    color: #ff3333; /* 亮红色 */
}

.platform-logo:nth-child(3) i {
    color: #cc0000; /* 深红色 */
}

.platform-logo:nth-child(4) i {
    color: #ff6666; /* 浅红色 */
}

.platform-logo:nth-child(5) i {
    color: #990000; /* 暗红色 */
}

.platform-logo:nth-child(6) i {
    color: #ff0000; /* 纯红色 */
}

@media (max-width: 768px) {
    .platform-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .platform-logo {
        padding: 1rem;
    }
    
    .platform-logo i {
        font-size: 2rem;
    }
    
    .platform-logo span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .platform-logos {
        grid-template-columns: 1fr;
    }
}

/* 特点部分样式 */
.features {
    padding: 80px 0;
    background-color: var(--background-color);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
}

/* 功能展示样式 */
.showcase {
    padding: 80px 0;
    background-color: var(--light-background);
}

.showcase-item {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.showcase-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.showcase-item h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* 用户评价样式 */
.testimonials {
    padding: 80px 0;
    background-color: var(--background-color);
}

.testimonial-card {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author p {
    color: var(--light-text);
    margin: 0;
}

/* 统计数据样式 */
.stats {
    padding: 80px 0;
    background-color: var(--light-background);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.stat-card .description {
    font-size: 1rem;
    color: var(--light-text);
}

/* 联系页面样式 */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-hero {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--light-background);
    border-radius: 8px;
    margin-bottom: 3rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--light-text);
}

.contact-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-background);
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-item p {
    color: var(--light-text);
    margin: 0;
}

.contact-form {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: #000000;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230,0,0,0.25);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.social-links {
    text-align: center;
    padding: 3rem 0;
}

.social-links h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background-color: #000000;
    color: var(--text-color);
    padding: 3rem 0 1rem;
    box-shadow: 0 -2px 4px rgba(230,0,0,0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(230,0,0,0.3);
}

.footer-bottom p {
    color: var(--light-text);
    margin: 0;
}

/* 动画效果 */
.feature-card,
.showcase-item,
.testimonial-card,
.stat-card,
.demo-card,
.step,
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.showcase-item:hover,
.testimonial-card:hover,
.stat-card:hover,
.demo-card:hover,
.step:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(230,0,0,0.4);
}

/* 服务条款页面样式 */
.terms-page {
    padding: 120px 0 60px;
    background-color: var(--light-background);
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.terms-header .lead {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 1rem;
}

.terms-section {
    background-color: #000000;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.terms-section h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.terms-section h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.terms-content {
    color: var(--light-text);
    line-height: 1.8;
}

.terms-content p {
    margin-bottom: 1rem;
}

.terms-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-content ol li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .terms-page {
        padding: 100px 0 40px;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.75rem;
    }
    
    .terms-section h3 {
        font-size: 1.35rem;
    }
    
    .terms-section h4 {
        font-size: 1.15rem;
    }
}

/* 登录页面响应式样式 */
@media (max-width: 768px) {
    .hero {
        padding: 0;
    }
    
    .hero .container {
        margin: 0 auto;
    }
    
    .feature-card {
        margin: 0;
        border-radius: 0;
    }
}

.icon-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--light-background);
    border-radius: 8px;
}

.icon-demo i {
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-demo i:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.icon-demo .fa-arrow-right {
    color: var(--secondary-color);
    font-size: 1.5rem;
}