/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 台湾风格设计颜色 */
    --primary-color: #00a0e9;
    --secondary-color: #7b4bff;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;

    /* 渐变 */
    --primary-gradient: linear-gradient(135deg, #00a0e9, #7b4bff);
    --secondary-gradient: linear-gradient(135deg, #7b4bff, #ff6b6b);

    /* 字体 */
    --primary-font: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* 圆角 */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo i {
    margin-right: var(--spacing-sm);
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-sm) 0;
}

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

/* 语言切换器 */
.language-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: none;
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.lang-options a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(0, 160, 233, 0.1);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 主页面 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--light-text);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

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

/* 手机模型 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1f2937, #374151);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.chat-interface {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    height: 100%;
    color: white;
    padding: 20px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
}

.chat-messages {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    position: relative;
}

.message.received {
    background: #334155;
    align-self: flex-start;
}

.message.sent {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    align-self: flex-end;
}

/* 背景动画 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(37, 99, 235, 0.1);
    animation: float-random 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
}

/* 功能特色 */
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* 安全保障 */
.security {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.security-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 50px;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.security-item i {
    font-size: 24px;
    color: #3b82f6;
    margin-top: 5px;
}

.security-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.security-item p {
    color: #94a3b8;
    line-height: 1.6;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-animation {
    width: 300px;
    height: 300px;
    position: relative;
}

.encryption-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-point {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.data-point.encrypted {
    background: linear-gradient(135deg, #10b981, #059669);
}

.encryption-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

.encryption-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: encrypt-flow 2s ease-in-out infinite;
}

/* 下载区域 */
.download {
    padding: 120px 0;
    background: #f8fafc;
    text-align: center;
}

.download-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.download-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 60px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-btn.ios {
    background: linear-gradient(135deg, #000, #333);
}

.download-btn.android {
    background: linear-gradient(135deg, #01875f, #34d399);
}

.download-icon {
    font-size: 32px;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 12px;
    opacity: 0.8;
}

.download-store {
    font-size: 18px;
    font-weight: 600;
}



/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 10px;
    color: #3b82f6;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-random {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-5px, -20px) rotate(-5deg); }
    75% { transform: translate(-10px, -5px) rotate(3deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes encrypt-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式设计 */

/* 平板设备 */
@media (max-width: 1024px) {
    .hero-container {
        gap: var(--spacing-xl);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .security-content {
        gap: var(--spacing-xl);
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }

    .nav-container {
        padding: 0 var(--spacing-md);
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--spacing-lg);
        padding: var(--spacing-xl) 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .language-switcher {
        margin-top: var(--spacing-lg);
    }

    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        padding: var(--spacing-md);
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .hero-buttons {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .features {
        padding: var(--spacing-xxl) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-xl);
    }

    .security {
        padding: var(--spacing-xxl) 0;
    }

    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .security-visual {
        order: -1;
    }

    .download {
        padding: var(--spacing-xxl) 0;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }



    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .download-btn {
        padding: var(--spacing-md);
    }
}
