/* 全局样式和变量 */
:root {
    /* Tavern Green */
    --color-primary: #1FC24D;
    --color-primary-dark: #18953B;
    --color-primary-darker: #116728;
    --color-primary-deep: #0A3A16;
    --color-primary-darkest: #051C0A;

    /* White */
    --color-white: #FFFFFF;
    --color-light-gray: #BFBFBF;
    --color-medium-gray: #808080;
    --color-dark-gray-text: #4D4D4D;
    --color-darkest-gray-text: #333333;

    /* Gray (Backgrounds, Borders) */
    --color-bg-dark: #1F1F1F;
    --color-bg-darker: #0F0F0F;
    --color-bg-black: #000000;

    /* Text */
    --text-color-light: var(--color-darkest-gray-text); /* 更改为更深的灰色以增加对比度 */
    --text-color-heading: var(--color-white);

    /* Fonts */
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    /* 自定义 */
    --secondary: #1a1a1a;
    --accent: #ff8cb6; /* 稍微加深了粉色，以增强与背景的对比 */
    --accent-dark: #e0708b; /* 同样加深以确保良好的对比度 */
    --light: #fff9fb;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --text: #333;
    --text-light: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --xp-color: #9c27b0;
    --delete-color: #ff5252;
    --success-color: #4caf50;
    --girl-color: rgba(126,5,58,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--color-bg-black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 3rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-deep);
    color: var(--color-white);
    border-color: var(--color-primary-deep);
}

/* Header */
.main-header {
    background-color: var(--color-bg-black);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-bg-dark);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo .tawen-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    display: flex;
}

.main-header .logo .tawen-logo img {
    height: 40px;
}


.main-header .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-header .nav-links a {
    color: var(--color-light-gray);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-header .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-header .nav-links a:hover::after,
.main-header .nav-links a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--color-light-gray);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lang-toggle:hover {
    background-color: var(--color-bg-dark);
}

.lang-toggle i {
    transition: transform 0.3s ease;
}

.lang-toggle.active i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-bg-dark);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-width: 120px;
    z-index: 10;
    display: none;
    margin-top: 10px;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--color-light-gray);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown button:hover {
    background-color: var(--color-primary-deep);
    color: var(--color-white);
}

.discord-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.discord-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-black));
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-light-gray);
}

.hero-section .download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-section .download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero-section .download-btn.windows {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.hero-section .download-btn.windows:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 194, 77, 0.3);
}

.hero-section .download-btn.android {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.hero-section .download-btn.android:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 149, 59, 0.3);
}

.hero-section .scroll-indicator {
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-section .scroll-icon {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Features Section */
.features-section {
    background-color: var(--color-bg-darker);
    padding: 5rem 0;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 4rem;
    font-size: 3rem;
    color: var(--color-white);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--color-bg-dark);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(31, 194, 77, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-image-wrapper {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.feature-text h3 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--color-light-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-bg-black);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/tech-circuit-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.testimonials-section h2 {
    margin-bottom: 4rem;
    font-size: 3rem;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: var(--color-bg-dark);
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(31, 194, 77, 0.1);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-primary);
}

.testimonial-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-card .stars {
    color: gold;
    font-size: 1.2rem;
}

.testimonial-card .stars .fa-star-half-alt {
    color: gold;
}

.more-testimonials {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 6rem 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/abstract-chat-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    color: var(--color-white);
}

.cta-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary-dark);
}

.cta-section .btn-secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-darker);
    padding: 5rem 0;
    text-align: center;
}

.faq-section h2 {
    margin-bottom: 4rem;
    font-size: 3rem;
    color: var(--color-white);
}

.faq-item {
    background-color: var(--color-bg-dark);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(31, 194, 77, 0.05);
}

.faq-item h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--color-light-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.not-found-section {
    padding: 4rem 0;
    text-align: center;
}

.not-found-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.not-found-content p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 主页悬浮跳转 */
.floating-section {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background-color: var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    font-size: 16px;
    transition: box-shadow 0.2s;
    transition: all 0.3s ease;
}

.floating-section a {
    display: flex;
    z-index: 9;
    padding: 12px 20px;
    width: 100%;
    height: 100%;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
}

.floating-section:hover {
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); */

    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 149, 59, 0.3);
}

/* Footer */
.main-footer {
    background-color: var(--color-bg-black);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-bg-dark);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-logo .tawen-logo {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-logo .tawen-logo img {
    vertical-align: middle;
    height: 50px;
}

.footer-description {
    margin-bottom: 1.5rem;
    color: var(--color-light-gray);
    line-height: 1.7;
}

.footer-copyright {
    color: var(--color-medium-gray);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--color-light-gray);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-section .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .main-header .nav-links {
        /* display: none; */
        /* 可根据需要添加移动端菜单 */
    }

    .header-right {
        gap: 1rem;
    }

    .discord-button span {
        display: none;
    }

    .lang-toggle span {
        display: none;
    }
}