/* ==========================================
   全局样式
   ========================================== */
:root {
    --primary-color: #409EFF;
    --secondary-color: #67C23A;
    --danger-color: #F56C6C;
    --warning-color: #E6A23C;
    --info-color: #909399;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --border-color: #DCDFE6;
    --bg-color: #F5F7FA;
    --white: #FFFFFF;
    --shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ==========================================
   导航栏
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-brand i {
    font-size: 28px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-menu li a {
    text-decoration: none;
    color: var(--text-regular);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: var(--primary-color);
}

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

/* ==========================================
   英雄区域
   ========================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    margin-top: 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 30px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

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

.hero-image {
    animation: fadeInRight 1s ease;
}

.mockup-browser {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mockup-header {
    background: #e8e8e8;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc625d;
}

.mockup-header span:nth-child(2) {
    background: #fdbc40;
}

.mockup-header span:nth-child(3) {
    background: #35c749;
}

.mockup-content {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

/* ==========================================
   功能特性
   ========================================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

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

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
}

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

.feature-card p {
    color: var(--text-regular);
    line-height: 1.8;
}

/* ==========================================
   技术栈
   ========================================== */
.tech-stack {
    padding: 80px 0;
    background: var(--bg-color);
}

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

.tech-category {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.tech-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-category h3 i {
    color: var(--primary-color);
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-regular);
    transition: var(--transition);
}

.tech-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================
   系统预览
   ========================================== */
.screenshots {
    padding: 80px 0;
    background: var(--white);
}

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

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.screenshot-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.screenshot-placeholder i {
    margin-bottom: 15px;
}

.screenshot-placeholder p {
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================
   快速开始
   ========================================== */
.quick-start {
    padding: 80px 0;
    background: var(--bg-color);
}

.quick-start-content {
    display: grid;
    gap: 30px;
}

.quick-start-step {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

.quick-start-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px 20px;
    padding-right: 50px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    position: relative;
    overflow-x: auto;
    text-align: left;
}

.code-block code {
    display: block;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   文档中心
   ========================================== */
.docs {
    padding: 80px 0;
    background: var(--white);
}

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

.doc-card {
    padding: 40px 30px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doc-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.doc-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.doc-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   联系我们
   ========================================== */
.contact {
    padding: 80px 0;
    background: var(--bg-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   回到顶部按钮
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #66b1ff;
    transform: translateY(-5px);
}

/* ==========================================
   动画
   ========================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================
   响应式设计 - 平板
   ========================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

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

    .quick-start-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

/* ==========================================
   响应式设计 - 移动端
   ========================================== */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 400px;
        padding: 10px 0;
    }

    .navbar-menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu li a {
        display: block;
        padding: 15px 20px;
    }

    .navbar-menu li a::after {
        display: none;
    }

    .hero {
        padding: 80px 0 60px;
    }

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

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

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

    .mockup-content {
        padding: 40px;
    }

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

    .features,
    .tech-stack,
    .screenshots,
    .quick-start,
    .docs,
    .contact {
        padding: 60px 0;
    }

    .features-grid,
    .tech-grid,
    .screenshots-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .code-block {
        padding: 12px 15px;
        padding-right: 45px;
        font-size: 12px;
    }
    
    .code-block code {
        font-size: 12px;
        white-space: pre;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

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

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

    .feature-card,
    .tech-category {
        padding: 20px;
    }

    .code-block {
        padding: 10px 12px;
        padding-right: 40px;
        font-size: 11px;
    }
    
    .code-block code {
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }
    
    .copy-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
