/* 通用样式 */
body {
    margin: 0;
    font-family: 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
    line-height: 1.8;
    color: #e8e8e8;
    background-color: #0d0d0d;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: #d4d4d4;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background-color: transparent;
    padding: 0;
    list-style: none;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #00bcd4;
    background-color: rgba(0, 188, 212, 0.1);
}

.nav-menu.active {
    transform: translateY(0);
}

/* Hero 区域样式 */
.hero {
    position: relative;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 2px;
}

.title-main {
    display: block;
    color: #ffffff;
}

.title-sub {
    display: block;
    font-size: 0.6em;
    color: #00bcd4;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 2;
    color: #e8e8e8;
    font-weight: 400;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #00bcd4;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    background-color: #00a5bb;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(51, 51, 51, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(85, 85, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 功能特性样式 */
.features {
    padding: 5rem 0;
    background-color: #121212;
    color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 3rem;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.3);
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #c4c4c4;
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #00bcd4;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

/* 截图展示样式 */
.screenshots {
    padding: 5rem 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.screenshot-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.screenshot-placeholder:hover {
    transform: scale(1.03);
}

.screenshot-placeholder p {
    color: #d4d4d4;
    font-size: 1.1rem;
    font-weight: 500;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #00bcd4;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

.contact-links a:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

/* 二维码区域样式 */
.contact-qr-section {
    margin-top: 3rem;
}

.qr-group {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.qr-code-box {
    text-align: center;
}

.qr-code-box img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-code-box p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #d4d4d4;
    font-weight: 600;
}

/* 下载区域二维码图片 */
.qrcode-img {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qrcode-img img {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.url-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.url-display code {
    color: #00bcd4;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* 页脚样式 */
.footer {
    padding: 3rem 0;
    background-color: rgba(26, 26, 26, 0.95);
    color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-text {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.95rem;
    color: #888;
}

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    background: #f5f5f5;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    margin: 3px 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 移动端导航菜单隐藏 */
.nav-menu {
    transform: translateY(-100%);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    display: none;
}

.nav-menu.active {
    display: flex;
}

/* 调整移动端按钮位置 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        justify-content: flex-end;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        padding: 1rem 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
}