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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 0;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #667eea;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

.dropdown-menu li a.active {
    color: #667eea;
    background: #f0f0ff;
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.carousel-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: #fff;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

/* 特性区域 */
.features {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.about-content {
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

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

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 页面头部 */
.page-header {
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 项目详情页 */
.project-hero {
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.project-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.project-hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tag {
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
}

.project-detail {
    padding: 60px 0;
    background: #fff;
}

.project-overview {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.project-overview h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.project-overview p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

.project-features h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-icon-small {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

.project-tech h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.tech-item {
    padding: 10px 25px;
    background: #f0f0ff;
    color: #667eea;
    border-radius: 20px;
    font-weight: 500;
}

.project-links h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 开源页面 */
.opensource-content {
    padding: 60px 0;
    background: #f5f5f5;
}

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

.opensource-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.opensource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.opensource-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.opensource-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.opensource-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.opensource-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.opensource-meta .lang {
    padding: 4px 12px;
    background: #f0f0ff;
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
}

.opensource-meta .stars {
    color: #666;
    font-size: 14px;
}

.opensource-card .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #24292e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.opensource-card .btn-primary:hover {
    background: #000;
}

/* 贡献区域 */
.contribute {
    padding: 60px 0;
    background: #fff;
}

.contribute-content {
    text-align: center;
}

.contribute-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.contribute-content p {
    color: #666;
    margin-bottom: 30px;
}

.contribute-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contribute-item .icon {
    font-size: 24px;
}

/* 价格页面 */
.pricing-tabs {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pricing-content {
    padding: 60px 0;
    background: #f5f5f5;
}

.pricing-project {
    display: none;
}

.pricing-project.active {
    display: block;
}

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

.pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: #fff;
    padding: 5px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price .currency {
    font-size: 24px;
    color: #667eea;
}

.price .amount {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
}

.price .period {
    color: #999;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: #ccc;
}

.pricing-features .check {
    color: #27ae60;
    font-weight: bold;
}

.pricing-features .cross {
    color: #e74c3c;
}

/* 对比表格 */
.comparison-table {
    padding: 60px 0;
    background: #fff;
}

.table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.compare-table th,
.compare-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.compare-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.compare-table .check {
    color: #27ae60;
    font-size: 20px;
}

.compare-table .cross {
    color: #e74c3c;
    font-size: 20px;
}

/* FAQ */
.faq {
    padding: 60px 0;
    background: #f5f5f5;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* 演示区域样式 */
.demo-section {
    padding: 80px 0;
    background: #fff;
}

.demo-project {
    margin-bottom: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
}

.demo-project:last-child {
    margin-bottom: 0;
}

.demo-project-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.demo-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.demo-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.demo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.demo-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.demo-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.demo-qr {
    margin-bottom: 15px;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qr-placeholder span {
    text-align: center;
    padding: 10px;
}

.demo-item p {
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .carousel {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 32px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .pricing-card.featured {
        transform: none;
    }

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

    .link-buttons {
        flex-direction: column;
        align-items: center;
    }

    .demo-codes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-project {
        padding: 20px;
    }

    .qr-placeholder {
        width: 120px;
        height: 120px;
    }
}
