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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

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

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.logo {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo i {
    display: inline-block;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

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

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

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

.hero-image {
    position: relative;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    min-height: 300px;
}

.hero-slide {
    display: none !important;
    position: relative;
    width: 100%;
    min-height: 300px;
}

.hero-slide.active {
    display: block !important;
}

.hero-slide-img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-slide-img:hover {
    transform: scale(1.02);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 15px;
}

.hero-slider-next {
    right: 15px;
}

.hero-slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    display: flex !important;
    opacity: 1 !important;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 8px;
}

.image-modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 6px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.image-modal-close:hover {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 关于开发者 */
.about {
    padding: 60px 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: left;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-icon i {
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* 界面展示 */
.screenshots {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.screenshot-item {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.screenshot-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.screenshot-desc {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 技术架构 */
.tech-stack {
    padding: 60px 0;
    background: var(--bg-light);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tech-item {
    background: var(--bg-white);
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.tech-item strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 购买方式 */
.purchase {
    padding: 80px 0;
    background: var(--bg-white);
}

.purchase-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.purchase-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.purchase-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.purchase-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.code-block {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.code-block pre {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0;
    overflow-x: auto;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

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

.purchase-steps {
    margin-top: 2rem;
}

.purchase-steps h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.purchase-steps ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 2;
}

.price-note {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.purchase-includes {
    list-style: none;
    margin-top: 1rem;
}

.purchase-includes li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.purchase-includes li i {
    color: #28a745;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-icon i {
    display: inline-block;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏移动端 */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .nav-brand .brand-name {
        font-size: 1.1rem;
    }
    
    /* 首页横幅 */
    .hero {
        padding: 40px 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }
    
    .hero-image-slider {
        min-height: 250px;
    }
    
    .hero-slide {
        min-height: 250px;
    }
    
    .hero-slide-img {
        min-height: 250px;
    }

    .hero-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .hero-slider-prev {
        left: 8px;
    }

    .hero-slider-next {
        right: 8px;
    }

    .hero-slider-indicators {
        bottom: 8px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* 关于部分 */
    .about {
        padding: 40px 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: left;
    }
    
    /* 功能特性 */
    .features {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* 界面展示 */
    .screenshots {
        padding: 40px 0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .screenshot-img {
        height: 180px;
    }
    
    /* 技术架构 */
    .tech-stack {
        padding: 40px 0;
    }
    
    .tech-list {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .tech-item {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 购买方式 */
    .purchase {
        padding: 40px 0;
    }
    
    .purchase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .purchase-card {
        padding: 1.5rem;
    }
    
    .purchase-card h3 {
        font-size: 1.5rem;
    }
    
    .code-block {
        padding: 1rem;
    }
    
    .code-block pre {
        font-size: 0.8rem;
    }
    
    /* 联系方式 */
    .contact {
        padding: 40px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-info {
        font-size: 1.1rem;
    }
    
    .contact-note {
        margin: 2rem 1rem 0;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    /* 图片模态框 */
    .image-modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .image-modal-caption {
        font-size: 0.9rem;
        padding: 8px 15px;
        bottom: 10px;
    }
    
    /* 容器内边距 */
    .container {
        padding: 0 15px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-brand .brand-name {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .purchase-card h3 {
        font-size: 1.3rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

