/* 前台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D9534F;
    --primary-hover: #c9302c;
    --secondary-color: #5cb85c;
    --danger-color: #f5222d;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-light);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c9302c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.hero-content p {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.95;
}

/* Version Cards */
.version-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.version-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #333;
}

.version-card h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
    color: #333;
}

.version-num {
    display: none;
}

.download-btn {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

/* Highlights */
.highlights {
    background: var(--bg-white);
    padding: 60px 0;
}

.highlights-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    border-radius: 12px;
}

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

.highlight-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

.highlight-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.highlight-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* Features */
.features {
    padding: 80px 0;
}

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

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

.feature-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    color: var(--text-light);
}

/* Articles */
.articles {
    padding: 80px 0;
    background: var(--bg-white);
}

.articles-list {
    display: grid;
    gap: 20px;
}

.article-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.article-item:hover {
    box-shadow: var(--shadow);
}

.article-item h3 {
    margin-bottom: 10px;
}

.article-item h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.article-item h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    gap: 15px;
}

/* List Page */
.page-title {
    margin: 40px 0;
    font-size: 32px;
}

.list-container {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.list-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.list-item h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.list-item h3 a {
    text-decoration: none;
    color: var(--text-color);
}

.list-item h3 a:hover {
    color: var(--primary-color);
}

.list-item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.category {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
}

.list-item-excerpt {
    color: var(--text-light);
    line-height: 1.8;
}

/* App Item */
.app-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.app-item-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

.app-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.app-info {
    flex: 1;
}

.app-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.app-info h3 a {
    text-decoration: none;
    color: var(--text-color);
}

.app-info h3 a:hover {
    color: var(--primary-color);
}

.app-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.app-description {
    color: var(--text-light);
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--bg-white);
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Detail Pages */
.article-detail,
.app-detail {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.article-content {
    line-height: 2;
    font-size: 16px;
    color: var(--text-color);
}

.app-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.app-icon-large {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.app-header-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.app-version {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.app-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.app-actions-large {
    margin-bottom: 40px;
}

.app-section {
    margin-bottom: 40px;
}

.app-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.app-features-list {
    display: grid;
    gap: 10px;
}

.feature-line {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table td {
    padding: 15px 10px;
}

.info-table td:first-child {
    font-weight: 500;
    width: 150px;
    color: var(--text-light);
}

.back-link {
    margin: 40px 0;
    text-align: center;
}

/* Download Page */
.download-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c9302c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.download-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 50px;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.platform-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.platform-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-card.disabled:hover {
    transform: none;
}

.platform-icon {
    font-size: 56px;
    color: #333;
    margin-bottom: 15px;
}

.platform-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.platform-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.download-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.download-tag i {
    margin-right: 5px;
}

.download-tag.coming-soon {
    background: #999;
}

/* Download Content */
.download-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.content-main h3 {
    font-size: 22px;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.content-main h4 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.content-main p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.comparison-table i {
    margin-right: 8px;
    color: var(--primary-color);
}

.install-steps {
    background: white;
    padding: 25px 25px 25px 50px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.8;
}

.install-steps li {
    margin-bottom: 12px;
}

.system-requirements {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.req-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
}

.req-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.req-item ul {
    list-style: none;
    padding: 0;
}

.req-item li {
    padding: 8px 0;
    line-height: 1.6;
}

.faq-section {
    margin: 30px 0;
}

.why-choose {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.choose-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    align-items: flex-start;
}

.choose-item i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.choose-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.choose-item p {
    margin: 0;
    color: var(--text-light);
}

.features-detail {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.feature-detail {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
}

.feature-detail .feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-detail h4 {
    margin: 0 0 10px 0;
}

.feature-detail p {
    margin: 0;
}

.tips-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.tip-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.tip-item p {
    margin: 0;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.quick-links,
.article-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li,
.article-links li {
    margin-bottom: 12px;
}

.quick-links a,
.article-links a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.quick-links a:hover,
.article-links a:hover {
    color: var(--primary-color);
}

.quick-links i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 20px;
}

.article-links a {
    font-size: 14px;
}

.article-links i {
    margin-right: 8px;
    color: var(--primary-color);
}

.download-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.download-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.download-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.download-description {
    color: var(--text-light);
    line-height: 1.6;
}

.download-action {
    flex-shrink: 0;
}

/* Article List */
.article-list {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.article-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.article-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.article-item h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.article-item h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 5px;
}

.article-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer a {
    color: white;
    text-decoration: underline;
}

/* Utilities */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
}

.error-message {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: var(--danger-color);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* SEO Content Section */
.seo-content {
    background: var(--bg-white);
    padding: 80px 0;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-block h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.content-block h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.content-block p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.content-block ul,
.content-block ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.content-block li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
}

.content-block ul li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.content-block ol {
    counter-reset: list-counter;
}

.content-block ol li {
    counter-increment: list-counter;
}

.content-block ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-list li,
.use-cases li {
    background: var(--bg-light);
    padding: 15px 15px 15px 45px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.steps {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.steps li {
    padding-left: 40px;
}

/* FAQ Section */
.faq {
    margin-top: 30px;
}

.faq-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-item h4 i {
    margin-right: 10px;
}

.faq-item p {
    margin: 0;
    padding-left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .version-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .nav {
        gap: 15px;
    }
    
    .article-detail,
    .app-detail {
        padding: 30px 20px;
    }
    
    .app-header {
        flex-direction: column;
    }
    
    .platform-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
    }
}

