/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --primary-dark: #E85D8A;
    --secondary-color: #C197D2;
    --accent-color: #B4E1FF;
    --text-dark: #2D2D2D;
    --text-light: #6B6B6B;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --gradient-1: linear-gradient(135deg, #FF6B9D 0%, #C197D2 100%);
    --gradient-2: linear-gradient(135deg, #FEC8D8 0%, #FFDEE9 100%);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body[lang="en"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[lang="ja"] {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[lang="ko"] {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

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

/* 语言选择器 */
.language-selector {
    position: relative;
}

.lang-current {
    padding: 8px 16px;
    background: var(--bg-light);
    border: none;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-current::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.6;
}

.lang-current:hover {
    background: var(--bg-white);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    z-index: 1000;
}

.language-selector:hover .lang-dropdown,
.language-selector:focus-within .lang-dropdown {
    display: flex;
}

.lang-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
}

/* 汉堡菜单按钮（默认隐藏） */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 英雄区域 */
.hero {
    padding-top: 120px;
    padding-bottom: 100px;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 151, 210, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--bg-light);
    transform: rotateY(180deg);
}

/* 移动端波浪优化 */
@media (max-width: 640px) {
    .hero-wave svg {
        height: 60px;
    }
}

/* 功能特性 */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: 18px;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 应用截图 */
.screenshots {
    padding: 100px 0;
    background: white;
}

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

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.screenshot-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* CTA区域 */
.cta {
    padding: 100px 0;
    background: var(--gradient-1);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* 页脚 */
.footer {
    padding: 40px 0;
    background: var(--text-dark);
    color: white;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-logo span {
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* 隐私政策页面样式 */
.privacy-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background: var(--gradient-2);
    text-align: center;
}

.privacy-hero h1 {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.privacy-hero p {
    font-size: 18px;
    color: var(--text-light);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    background: white;
}

.privacy-section {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.privacy-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 15px;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
}

.privacy-section li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.privacy-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

/* 响应式设计 - 平板 */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 450px;
        margin: 0 auto;
    }

    .nav-menu a {
        font-size: 14px;
    }

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

    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    /* 导航栏优化 */
    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 15px;
    }

    .nav-logo img {
        width: 36px;
        height: 36px;
    }

    .app-name {
        font-size: 16px;
    }

    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: flex;
    }

    /* 移动端菜单样式 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 10px 0;
        width: 100%;
        color: var(--text-dark);
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-menu a::after {
        display: none;
    }

    /* 移动端语言选择器 */
    .language-selector {
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid var(--bg-light);
    }

    .lang-current {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 15px;
    }

    .lang-dropdown {
        position: static;
        margin-top: 10px;
        width: 100%;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 10px;
    }

    .language-selector:hover .lang-dropdown,
    .language-selector:focus-within .lang-dropdown {
        display: flex;
    }

    /* 移动端菜单遮罩 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* 英雄区域优化 */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        gap: 35px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .hero-image img {
        max-width: 100%;
        border-radius: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 28px;
        font-size: 15px;
    }

    /* 功能区域优化 */
    .features {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .feature-icon svg {
        width: 32px;
        height: 32px;
    }

    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 截图区域优化 */
    .screenshots {
        padding: 60px 0;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshot-img {
        border-radius: 16px;
    }

    /* CTA区域优化 */
    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .btn-large {
        padding: 16px 35px;
        font-size: 16px;
    }

    /* 页脚优化 */
    .footer {
        padding: 30px 0;
    }

    .footer-logo img {
        width: 32px;
        height: 32px;
    }

    .footer-logo span {
        font-size: 15px;
    }

    .footer-links {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 隐私政策页面优化 */
    .privacy-hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .privacy-hero h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .privacy-hero p {
        font-size: 16px;
    }

    .privacy-content {
        padding: 50px 20px;
    }

    .privacy-section {
        margin-bottom: 35px;
        padding: 25px 20px;
        border-radius: 16px;
    }

    .privacy-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .privacy-section p {
        font-size: 14px;
        line-height: 1.8;
    }

    .privacy-section li {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}
