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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-logo h2 {
    color: #4285F4;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4285F4;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4285F4;
    transition: width 0.3s ease;
}

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

/* 全局移除所有按钮的焦点轮廓 */
button:focus,
button:active,
.lang-btn:focus,
.lang-btn:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline: none !important;
}

/* 移除所有可能的焦点样式 */
*:focus {
    outline: none !important;
}

*::-moz-focus-inner {
    border: 0 !important;
}

/* Table of Contents Styles */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}
.toc h3 {
    margin-top: 0;
    color: #495057;
}
.toc ol {
    margin: 10px 0;
    padding-left: 20px;
}
.toc li {
    margin-bottom: 8px;
}
.toc a {
    color: #007bff;
    text-decoration: none;
}
.toc a:hover {
    text-decoration: underline;
}

.language-switcher {
    display: flex;
    margin-left: 20px;
    gap: 8px;
}

.lang-btn {
    background: #f8f9fa;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 25px;
    outline: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    -moz-outline: none;
}

.lang-btn:focus {
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:active {
    outline: none !important;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn:hover {
    background: #e9ecef;
    color: #4285F4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, #4285F4, #34a853);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #3367d6, #2d8f47);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.lang-btn:hover {
    background: #f5f5f5;
    color: #4285F4;
}

.lang-btn.active {
    background: #4285F4;
    color: white;
}

.lang-btn.active:hover {
    background: #3367d6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页英雄区域 */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4285F4;
    color: white;
    border-color: #4285F4;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4285F4;
    border-color: #4285F4;
}

.btn-outline:hover {
    background: #4285F4;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* 应用展示区域 */
.apps {
    padding: 120px 0;
    background: #f8f9fa;
}

.apps h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.875rem;
    margin-bottom: 2rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 6rem;
}

.apps-grid {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

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

.app-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon img {
    border-radius: 16px;
    display: block;
}

.app-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.app-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.app-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-stats span {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 关于我们区域 */
.about {
    padding: 120px 0 180px 0;
    background: white;
}

.about-section {
    padding: 120px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.875rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 联系我们区域 */
.contact-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.875rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0.2rem 0;
}

.company-zh {
    font-size: 0.95rem;
    color: #888;
    margin-top: 5px !important;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4285F4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #4285F4;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4285F4;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* 隐私政策和服务条款页面样式 */
.privacy-section,
.terms-section {
    padding: 120px 0 80px;
    background: white;
}

.privacy-header,
.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-header h1,
.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.last-updated {
    color: #666;
    font-style: italic;
}

.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-intro,
.terms-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4285F4;
}

.privacy-section-item,
.terms-section-item {
    margin-bottom: 3rem;
}

.privacy-section-item h2,
.terms-section-item h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4285F4;
    padding-bottom: 0.5rem;
}

.privacy-section-item h3,
.terms-section-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4285F4;
    margin: 1.5rem 0 1rem;
}

.privacy-section-item p,
.terms-section-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-section-item ul,
.terms-section-item ul {
    margin: 1rem 0 1rem 2rem;
}

.privacy-section-item li,
.terms-section-item li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.privacy-footer,
.terms-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* 广告合作伙伴说明样式 */
.ad-partners-note {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.ad-partners-note h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.ad-partners-note ul {
    margin: 0;
    padding-left: 20px;
}

.ad-partners-note li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ad-partners-note strong {
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .language-switcher {
        position: fixed;
        top: 20px;
        right: 60px;
        z-index: 1001;
        margin-left: 0;
        gap: 6px;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .apps-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .apps-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .privacy-section,
    .terms-section {
        padding: 100px 0 60px;
    }
    
    .privacy-header h1,
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .language-switcher {
        right: 15px;
        top: 15px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: #4285F4;
    color: white;
}

/* 焦点样式 */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    border-top-color: #4285F4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}