/* style.css */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #174ea6;
    --text-main: #202124;
    --text-secondary: #5f6368;
    --bg-color: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-lg: 0 4px 6px 0 rgba(60,64,67,0.3), 0 8px 24px 3px rgba(60,64,67,0.15);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 40px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* 主视觉区 */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 580px;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-text h1 strong {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    color: white; /* 修复作为 a 标签时的 hover 颜色覆盖问题 */
    text-decoration: none;
}

.btn-primary:active {
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
}

.btn-subtext {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.terms {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 浏览器 Mockup (纯CSS极速加载) */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.browser-mockup {
    width: 100%;
    max-width: 540px;
    height: 380px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.browser-header {
    height: 40px;
    background: #f1f3f4;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-address-bar {
    flex: 1;
    margin-left: 16px;
    background: white;
    border-radius: 20px;
    height: 24px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--border-color);
}

.browser-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

.browser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mockup-search {
    width: 280px;
    height: 36px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 功能区 */
.features {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 64px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* SEO 文章区 */
.seo-article {
    padding: 60px 0;
    background: var(--bg-gray);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
    text-align: justify;
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .cta-wrapper {
        align-items: center;
    }
    
    .browser-mockup {
        transform: none;
        margin-top: 24px;
    }
    .browser-mockup:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 移动端精简头部，加快呈现 */
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
