/* Base Styles */
:root {
    --primary-color: #ff3333; /* 鲜红色 */
    --primary-dark: #cc0000; /* 深红色 */
    --secondary-color: #ff6666; /* 浅红色 */
    --accent-color: #990000; /* 暗红色 */
    --text-color: #ffffff; /* 纯白色文字 */
    --text-light: #dddddd; /* 浅灰白色文字 */
    --bg-color: #1a0000; /* 非常暗的红黑色背景 */
    --bg-light: #300000; /* 稍亮的暗红色背景 */
    --bg-dark: #0d0000; /* 更暗的红黑色 */
    --header-bg: rgba(26, 0, 0, 0.95); /* 半透明头部 */
    --header-text: #ffffff;
    --border-color: #4a0000; /* 暗红色边框 */
    --card-bg: rgba(50, 0, 0, 0.6); /* 半透明卡片背景 */
    --card-hover: rgba(70, 0, 0, 0.8); /* 卡片悬停背景 */
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #ff5252;
    --border-radius: 12px; /* 保持增加的圆角 */
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 0, 0, 0.15); /* 红色光晕阴影 */
    --transition: all 0.3s ease;
    --glow-effect: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3); /* 红色光晕效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 51, 51, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 102, 102, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

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

section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 添加渐变分隔线 */
section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color), 
        transparent);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(120deg, var(--text-color), var(--secondary-color) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
    background: linear-gradient(120deg, var(--text-color), var(--primary-color) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* 添加下划线动画效果 */
a:not(.btn):not(.logo a):after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

a:not(.btn):not(.logo a):hover:after {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

ul {
    list-style: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.btn-primary::before {
    background: linear-gradient(45deg, var(--primary-dark), var(--accent-color));
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-effect);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.1);
}

.btn-secondary::before {
    background: var(--primary-color);
    opacity: 0;
    transform: scale(1.3);
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-effect);
}

.btn-secondary:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    height: 40px;
    width: auto;
    margin-right: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(5deg);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 35px;
}

.main-nav a {
    color: var(--header-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

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

.header-buttons {
    margin-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(ellipse at bottom, var(--bg-light) 0%, var(--bg-color) 70%);
    position: relative;
    overflow: hidden;
}

/* 添加星星背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 40px 60px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 80px 120px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 120px 40px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 200px 100px, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 300px 10px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 400px 200px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 500px 50px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0));
    background-size: 600px 400px;
    background-repeat: repeat;
    z-index: 0;
    opacity: 0.5;
    animation: stars 120s linear infinite;
}

@keyframes stars {
    0% { background-position: 0 0; }
    100% { background-position: 600px 400px; }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--box-shadow), 0 0 30px rgba(255, 51, 51, 0.2);
    transition: all 0.5s ease;
    transform: perspective(800px) rotateY(-5deg);
}

.hero-image:hover img {
    transform: perspective(800px) rotateY(0deg);
    box-shadow: var(--box-shadow), 0 0 40px rgba(255, 51, 51, 0.3);
}

.play-stats {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.played-times::before {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    margin-right: 5px;
    color: var(--secondary-color);
}

.likes::before {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: var(--text-light);
    max-width: 600px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

/* Game Section */
.game-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, var(--bg-dark) 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, var(--bg-dark) 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, var(--bg-dark) 25%, transparent 25%),
        linear-gradient(45deg, var(--bg-dark) 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: var(--bg-color);
    opacity: 0.4;
    z-index: -1;
}

.game-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    border: 2px solid rgba(255, 51, 51, 0.3);
    transition: var(--transition);
}

.game-container:hover {
    box-shadow: var(--glow-effect);
    border-color: rgba(255, 51, 51, 0.6);
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    text-align: center;
    margin-top: 20px;
}

.game-controls a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Features Section */
.features {
    background-color: var(--bg-color);
    color: var(--text-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 51, 51, 0.08) 0%, transparent 70%),
                radial-gradient(circle at 80% 70%, rgba(255, 102, 102, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-light);
    border: 1px solid rgba(255, 51, 51, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: all 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow), var(--glow-effect);
    background-color: var(--card-hover);
    border-color: rgba(255, 51, 51, 0.3);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 51, 51, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* What Is Section */
.what-is {
    background-color: var(--bg-light);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.what-is::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff3333' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: -1;
}

.what-is .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.what-is-content {
    flex: 1;
    padding-right: 60px;
    min-width: 300px;
}

.what-is-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.what-is-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
    transform: perspective(1000px) rotateY(5deg);
    border: 2px solid rgba(255, 51, 51, 0.2);
}

.what-is-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.what-is-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.what-is-image:hover::before {
    top: -10px;
    right: -10px;
    opacity: 0.6;
}

/* How To Play Section */
.how-to-play {
    background-color: var(--bg-color);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.how-to-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 51, 51, 0.1), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 102, 102, 0.1), transparent 40%);
    z-index: -1;
}

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

/* 创建连接步骤的垂直线 */
.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.7);
}

.step-content {
    flex: 1;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 51, 51, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.step:hover .step-content {
    transform: translateX(10px);
    box-shadow: var(--box-shadow), 0 0 15px rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.3);
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.step-content p {
    margin-bottom: 0;
}

/* Why Play Section */
.why-play {
    background-color: var(--bg-light);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.why-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, var(--bg-dark) 25%, transparent 25%),
        linear-gradient(-45deg, var(--bg-dark) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.3;
    z-index: -1;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.reason-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-light);
    border: 1px solid rgba(255, 51, 51, 0.1);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow), var(--glow-effect);
    border-color: rgba(255, 51, 51, 0.3);
}

.reason-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    color: var(--text-light);
    position: relative;
    border: 1px solid rgba(255, 51, 51, 0.1);
    transition: all 0.3s ease;
}

.testimonial::before {
    content: '\f10d'; /* Quote icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    color: rgba(255, 51, 51, 0.1);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow), 0 0 15px rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.3);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-color);
    color: var(--text-light);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ff3333' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    backdrop-filter: blur(5px);
}

.faq-item:hover {
    border-color: rgba(255, 51, 51, 0.4);
    box-shadow: var(--box-shadow), 0 0 15px rgba(255, 51, 51, 0.2);
}

.faq-question {
    padding: 20px 25px;
    background-color: rgba(19, 19, 57, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(19, 19, 57, 0.9);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.faq-toggle {
    color: var(--secondary-color);
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 51, 51, 0.1);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.8;
}

.faq-item.active {
    border-color: rgba(255, 51, 51, 0.5);
    box-shadow: var(--box-shadow), var(--glow-effect);
}

.faq-item.active .faq-question {
    background-color: rgba(30, 30, 60, 0.9);
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background-color: rgba(255, 51, 51, 0.2);
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 51, 51, 0.05) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255, 102, 102, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    margin-top: 10px;
    color: var(--text-light);
    line-height: 1.7;
}

.footer h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '\f105'; /* FontAwesome arrow icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 51, 51, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-right: none;
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap; /* 防止文本换行 */
    min-width: 120px; /* 确保按钮有足够的宽度显示文本 */
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

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

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Animation & Transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

/* Section appear animation */
section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
section.appear .feature-card,
section.appear .reason-card,
section.appear .step, 
section.appear .faq-item,
section.appear .testimonial {
    animation: fadeIn 0.6s ease forwards;
}

/* Staggered delay for items */
section.appear .feature-card:nth-child(1),
section.appear .reason-card:nth-child(1),
section.appear .step:nth-child(1),
section.appear .faq-item:nth-child(1),
section.appear .testimonial:nth-child(1) {
    animation-delay: 0.1s;
}

section.appear .feature-card:nth-child(2),
section.appear .reason-card:nth-child(2),
section.appear .step:nth-child(2),
section.appear .faq-item:nth-child(2),
section.appear .testimonial:nth-child(2) {
    animation-delay: 0.2s;
}

section.appear .feature-card:nth-child(3),
section.appear .reason-card:nth-child(3),
section.appear .step:nth-child(3),
section.appear .faq-item:nth-child(3),
section.appear .testimonial:nth-child(3) {
    animation-delay: 0.3s;
}

section.appear .feature-card:nth-child(4),
section.appear .reason-card:nth-child(4),
section.appear .step:nth-child(4),
section.appear .faq-item:nth-child(4),
section.appear .testimonial:nth-child(4) {
    animation-delay: 0.4s;
}

/* Pulse animation for buttons */
.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        backdrop-filter: blur(10px);
        padding: 30px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        display: block;
        border-left: 1px solid rgba(255, 51, 51, 0.2);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .feature-card,
    .reason-card {
        padding: 25px 20px;
    }
    
    .steps-container::before {
        left: 17px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
        border-right: 1px solid rgba(255, 51, 51, 0.2);
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 12px 15px; /* 增加垂直内边距，确保高度足够 */
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .what-is .container {
        flex-direction: column;
    }
    
    .hero-content,
    .what-is-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .what-is-image::before {
        display: none;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        backdrop-filter: blur(10px);
        padding: 30px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        display: block;
        border-left: 1px solid rgba(255, 51, 51, 0.2);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .testimonial {
        flex: 0 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}