/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-page main {
    flex: 1;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    min-height: 60vh;
}

/* === Home page full width === */
.home-page { min-height: 100vh; background: #fff; }

/* === Nav === */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}
.nav-brand:hover { text-decoration: none; }

.nav-logo {
    width: 28px;
    height: 28px;
    display: block;
}

.nav-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav-link:hover {
    color: #0d9488;
    background: #f0fdfa;
    text-decoration: none;
}

/* === Hero === */
.hero {
    position: relative;
    padding: 140px 24px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #f0fdfa 0%, #fff 60%),
        radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: 0.03em;
    color: #1e293b;
    line-height: 1.15;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 40px;
    color: #64748b;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #0d9488;
    color: #fff;
    padding: 14px 32px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
    cursor: pointer;
}
.hero-btn:hover { background: #0f766e; color: #fff; text-decoration: none; }

.hero-btn-icon {
    margin-right: 6px;
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0d9488;
}

.hero-stat-label {
    font-size: 13px;
    color: #94a3b8;
}

/* === Section Shared === */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0d9488;
    background: #f0fdfa;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e293b;
}

.section-desc {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: left;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1e293b;
}

.feature-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

/* === Downloads === */
.downloads {
    padding: 80px 24px;
    background: #f8fafc;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    justify-content: center;
}

.download-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow .2s, border-color .2s;
}

.download-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
}

.download-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-os-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-os {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.download-version {
    font-size: 13px;
    color: #94a3b8;
}

.download-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-size {
    font-size: 14px;
    color: #64748b;
}

.download-changelog {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.download-btn {
    display: block;
    width: 100%;
    background: #0d9488;
    color: #fff;
    padding: 14px 32px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
    cursor: pointer;
}
.download-btn:hover { background: #0f766e; color: #fff; text-decoration: none; }

.empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
}

/* === Latest Articles (Home) === */
.latest-articles {
    padding: 80px 24px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow .2s;
}

.article-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card a:hover { text-decoration: none; }

.article-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1e293b;
}

.article-card .summary {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.article-card time {
    color: #94a3b8;
    font-size: 13px;
}

.view-all {
    margin-top: 20px;
    text-align: center;
}

/* === Articles Page (List) === */
.articles-page {
    min-height: 60vh;
}

.articles-header {
    padding: 120px 24px 48px;
    text-align: center;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 60%);
}

.articles-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.articles-header p {
    font-size: 16px;
    color: #94a3b8;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

.list-article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.list-article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
}

.list-article-link {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    color: inherit;
}
.list-article-link:hover { text-decoration: none; }

.list-article-cover {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}
.list-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-article-body {
    flex: 1;
    min-width: 0;
}

.list-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.list-article-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #94a3b8;
}

/* === Pagination === */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0 60px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    transition: color .2s, border-color .2s;
}
.page-btn:hover {
    color: #0d9488;
    border-color: #0d9488;
    text-decoration: none;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    transition: color .2s, background .2s;
}
.page-num:hover {
    color: #0d9488;
    background: #f0fdfa;
    text-decoration: none;
}
.page-num.active {
    color: #fff;
    background: #0d9488;
}
.page-num.active:hover {
    color: #fff;
    background: #0f766e;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 0;
    color: #94a3b8;
}
.empty-state svg {
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 16px;
}

/* === Article Detail === */
.detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
}
.breadcrumb a {
    color: #94a3b8;
    transition: color .2s;
}
.breadcrumb a:hover {
    color: #0d9488;
    text-decoration: none;
}
.breadcrumb-sep {
    color: #d1d5db;
}
.breadcrumb-current {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Detail Article */
.detail-article {
    background: #fff;
}

.detail-header {
    margin-bottom: 32px;
}

.detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #94a3b8;
}
.detail-meta-item svg {
    flex-shrink: 0;
}

/* Cover */
.detail-cover {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}
.detail-cover img {
    width: 100%;
    display: block;
}

/* Summary/Excerpt */
.detail-excerpt {
    margin-bottom: 32px;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid #0d9488;
    border-radius: 0 8px 8px 0;
}
.detail-excerpt p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Body Content */
.detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.detail-body h2 {
    font-size: 24px;
    margin: 36px 0 16px;
    color: #1e293b;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-body h3 {
    font-size: 20px;
    margin: 28px 0 12px;
    color: #1e293b;
}

.detail-body h4 {
    font-size: 17px;
    margin: 20px 0 8px;
    color: #1e293b;
}

.detail-body p { margin-bottom: 16px; }

.detail-body ul,
.detail-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.detail-body li { margin-bottom: 6px; }

.detail-body a { color: #0d9488; }
.detail-body a:hover { text-decoration: underline; }

.detail-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #be123c;
}

.detail-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.detail-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.detail-body blockquote {
    border-left: 4px solid #0d9488;
    padding: 8px 20px;
    margin: 0 0 20px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.detail-body th,
.detail-body td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.detail-body th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

.detail-body img {
    border-radius: 8px;
    margin: 16px 0;
}

.detail-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 32px 0;
}

/* Footer */
.detail-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.back-to-list:hover {
    color: #0d9488;
    background: #f0fdfa;
    text-decoration: none;
}

/* === Footer === */
.page-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-copy {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-icp {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}

.footer-icp:hover {
    color: #0d9488;
    text-decoration: none;
}

/* === Service / QR Code === */
.service-section {
    padding: 80px 24px;
    background: #f8fafc;
}

.service-card-inline {
    text-align: center;
    padding: 32px;
}

.service-qr {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    margin: 0 auto 16px;
}

.service-tip {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* === Download Page === */
.download-page {
    min-height: 60vh;
}

.download-page-header {
    padding: 120px 24px 48px;
    text-align: center;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 60%);
}
.download-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.download-page-header p {
    font-size: 16px;
    color: #94a3b8;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 0;
}

.version-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: box-shadow .2s, border-color .2s;
}
.version-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #14b8a6;
}

.version-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.version-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.version-os {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.version-number {
    font-size: 13px;
    color: #94a3b8;
}

.version-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.version-size {
    font-size: 13px;
    color: #94a3b8;
}

.version-changelog {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.version-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: #0d9488;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.version-download-btn:hover {
    background: #0f766e;
    color: #fff;
    text-decoration: none;
}

/* === Wish Page === */
.wish-page {
    min-height: 60vh;
}

.wish-page-header {
    padding: 120px 24px 48px;
    text-align: center;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 60%);
}
.wish-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.wish-page-header p {
    font-size: 16px;
    color: #94a3b8;
}

.wish-card {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}

.wish-card-icon {
    margin-bottom: 16px;
}

.wish-card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
}

.wish-form {
    text-align: left;
}

.wish-form-group {
    margin-bottom: 20px;
}

.wish-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.wish-required {
    color: #ef4444;
}

.wish-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    transition: border-color .2s;
}
.wish-textarea:focus {
    outline: none;
    border-color: #0d9488;
}
.wish-textarea::placeholder {
    color: #cbd5e1;
}

.wish-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: border-color .2s;
}
.wish-input:focus {
    outline: none;
    border-color: #0d9488;
}
.wish-input::placeholder {
    color: #cbd5e1;
}

.wish-form-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wish-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 32px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.wish-submit-btn:hover {
    background: #0f766e;
}
.wish-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wish-status {
    font-size: 14px;
    margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .list-article-link {
        flex-direction: column;
    }
    .list-article-cover {
        width: 100%;
        height: 180px;
    }

    .articles-header {
        padding: 100px 24px 32px;
    }
    .articles-header h1 {
        font-size: 26px;
    }

    .detail-page {
        padding: 90px 16px 40px;
    }
    .detail-header h1 {
        font-size: 24px;
    }
    .detail-meta {
        gap: 10px;
    }

    .version-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .version-card-top {
        justify-content: center;
        min-width: auto;
    }
    .version-meta {
        text-align: center;
    }
    .version-download-btn {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .detail-header h1 {
        font-size: 20px;
    }
    .detail-body h2 {
        font-size: 20px;
    }
}
