/* 重置和基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6; color: #e1e5e9; background: #0a0a0a; font-size: 16px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 按钮样式 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px;
    text-decoration: none; border-radius: 12px; font-weight: 500; text-align: center;
    transition: all 0.2s ease; cursor: pointer; border: none; font-size: 16px;
    position: relative; overflow: hidden;
}
.btn-primary, .btn-download {
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-primary:hover, .btn-download:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}
.btn-download { font-size: 18px; padding: 16px 32px; font-weight: 600; }
.btn-secondary { background: transparent; color: #e1e5e9; border: 1px solid #374151; }
.btn-secondary:hover { background: #374151; border-color: #4b5563; color: white; }
.btn-github { background: #1f2937; color: #e1e5e9; border: 1px solid #374151; }
.btn-github:hover { background: #374151; border-color: #4b5563; }
.btn-icon { margin-right: 8px; }
.btn:active { transform: scale(0.98); }

/* 徽章和标题 */
.badge {
    display: inline-block; padding: 6px 12px; background: rgba(59, 130, 246, 0.1);
    color: #60a5fa; border-radius: 20px; font-size: 14px; font-weight: 500;
    margin-right: 8px; margin-top: 8px; border: 1px solid rgba(59, 130, 246, 0.2);
}
.section-title {
    text-align: center; font-size: 2.5rem; font-weight: 700; color: #f9fafb;
    margin-bottom: 3rem; position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #111827 50%, #0a0a0a 100%);
    color: white; padding: 100px 0; min-height: 100vh; display: flex; align-items: center;
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
    background: linear-gradient(135deg, #f9fafb, #e1e5e9); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.logo { font-size: 3rem; margin-right: 15px; }
.hero-subtitle { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; opacity: 0.9; color: #d1d5db; }
.hero-description { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.8; line-height: 1.8; color: #9ca3af; }
.hero-buttons { margin-bottom: 2rem; }
.hero-buttons .btn { margin-right: 15px; margin-bottom: 10px; }
.version-info { display: flex; flex-wrap: wrap; }

/* 软件界面模拟 */
.mockup {
    background: #1f2937; border-radius: 16px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden; transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease; border: 1px solid #374151;
}
.mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mockup-header {
    background: #111827; padding: 12px 20px; display: flex; align-items: center;
    border-bottom: 1px solid #374151;
}
.mockup-buttons { display: flex; gap: 8px; margin-right: 15px; }
.mockup-buttons span { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.mockup-buttons span:nth-child(2) { background: #f59e0b; }
.mockup-buttons span:nth-child(3) { background: #10b981; }
.mockup-title { font-weight: 600; color: #e1e5e9; font-size: 14px; }
.mockup-tabs { display: flex; background: #1f2937; border-bottom: 1px solid #374151; }
.mockup-tabs span {
    padding: 12px 20px; color: #9ca3af; font-size: 14px; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s ease;
}
.mockup-tabs span.active { color: #60a5fa; border-bottom-color: #3b82f6; background: #374151; }
.mockup-body { padding: 20px; background: #1f2937; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #e1e5e9; font-size: 14px; }
.form-group input {
    width: 100%; padding: 8px 12px; border: 1px solid #4b5563; border-radius: 8px;
    font-size: 14px; color: #e1e5e9; background: #111827;
}
.form-group input:focus {
    outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.mockup-btn {
    background: #3b82f6; color: white; padding: 10px 20px; border: none; border-radius: 8px;
    font-weight: 500; cursor: pointer; margin-top: 10px; transition: all 0.2s ease;
}
.mockup-btn:hover { background: #2563eb; }

/* 软件截图轮播样式 */
.screenshot-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.screenshot-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
}

.software-screenshot {
    width: 100%; 
    height: auto; 
    max-width: 100%;
    border-radius: 16px; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease; 
    border: 1px solid #374151;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.software-screenshot.active {
    opacity: 1;
    position: relative;
}

.software-screenshot:hover { 
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg); 
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(59, 130, 246, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.carousel-btn:hover {
    background: rgba(37, 99, 235, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 轮播指示点 */
.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* 卡片样式 */
.feature-card, .use-case, .spec-item {
    background: #1f2937; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center; transition: transform 0.3s ease; border: 1px solid #374151;
}
.feature-card:hover, .use-case:hover { transform: translateY(-5px); border-color: #4b5563; }
.feature-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.spec-item:hover { border-color: #3b82f6; background: #374151; }

/* 功能特性 */
.features, .use-cases { padding: 100px 0; background: #0a0a0a; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.feature-card { padding: 40px 30px; }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; font-weight: 700; color: #f9fafb; margin-bottom: 20px; }
.feature-card ul { list-style: none; margin-bottom: 20px; text-align: left; }
.feature-card li { padding: 5px 0; color: #d1d5db; position: relative; padding-left: 20px; }
.feature-card li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: bold; }
.feature-desc { color: #9ca3af; line-height: 1.6; text-align: left; }

/* 技术规格 */
.specs { padding: 100px 0; background: #111827; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.spec-item { padding: 30px 20px; transition: border-color 0.3s ease, background-color 0.3s ease; }
.spec-item h4 { font-size: 1.1rem; font-weight: 600; color: #f9fafb; margin-bottom: 10px; }
.spec-item p { color: #d1d5db; font-weight: 500; }

/* 使用场景 */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.use-case { padding: 40px 30px; }
.use-case h3 { font-size: 1.3rem; font-weight: 600; color: #f9fafb; margin-bottom: 15px; }
.use-case p { color: #d1d5db; line-height: 1.6; }

/* 下载区域 */
.download {
    padding: 100px 0; background: linear-gradient(135deg, #111827 0%, #0a0a0a 100%);
    color: white; text-align: center; border-top: 1px solid #374151;
}
.download h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; color: #f9fafb; }
.download-desc { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; color: #d1d5db; }
.download-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
    margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.info-item {
    text-align: center; padding: 20px; background: #1f2937; border-radius: 12px;
    border: 1px solid #374151;
}
.info-item strong { display: block; font-size: 0.9rem; opacity: 0.7; margin-bottom: 5px; color: #9ca3af; }
.info-item span { font-size: 1.1rem; font-weight: 600; color: #e1e5e9; }
.download-buttons { margin-bottom: 30px; }
.download-buttons .btn { margin: 0 10px 10px 10px; }
.download-note { font-size: 0.9rem; opacity: 0.8; max-width: 600px; margin: 0 auto; color: #9ca3af; }

/* 页脚 */
.footer {
    background: #0a0a0a; color: white; padding: 60px 0 30px 0; border-top: 1px solid #374151;
}
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
    margin-bottom: 40px;
}
.footer-info h3 { font-size: 1.5rem; font-weight: 700; color: #f9fafb; margin-bottom: 10px; }
.footer-info p { color: #9ca3af; margin-bottom: 20px; }
.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: #e1e5e9;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9ca3af; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #60a5fa; }
.footer-contact p { color: #9ca3af; margin-bottom: 10px; line-height: 1.6; }
.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid #374151; color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero { padding: 60px 0; min-height: 80vh; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .features-grid, .use-cases-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .download-info { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .mockup { transform: none; }
    .software-screenshot { transform: none; }
    .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
    .carousel-controls { gap: 15px; margin-top: 15px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .hero-buttons .btn { display: block; margin: 0 auto 10px auto; width: 200px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2rem; }
    .logo { font-size: 2rem; }
    .download-info { grid-template-columns: 1fr; }
    .carousel-btn { width: 35px; height: 35px; font-size: 14px; }
    .carousel-controls { gap: 10px; margin-top: 10px; }
    .dot { width: 10px; height: 10px; }
    .download-buttons .btn { display: block; margin: 0 auto 15px auto; width: 100%; max-width: 300px; }
}

/* 动画效果 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.feature-card, .use-case, .spec-item { animation: fadeInUp 0.6s ease-out; }

/* 选择文本样式 */
::selection { background: #3b82f6; color: white; }
::-moz-selection { background: #3b82f6; color: white; }
