/* ===== style.css ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    min-width: 1200px;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航 */
.navbar {
    background: #f9f9fa;
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #1e293b;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: #0f172a;
}

.logo-text span {
    color: #f97316;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: #334155;
    margin-left: 50px;
}

.nav-links a:hover {
    color: #f97316;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.btn-outline {
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 13px;
    background: white;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #f97316;
    color: #f97316;
    background: #fff7ed;
}

.btn-primary {
    background: #1e293b;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #f97316;
    transform: scale(1.02);
}

/* Hero */
.hero {
    padding: 0px;
}

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

.hero-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #475569;
}

.highlight {
    color: #f97316;
}

.hero-desc {
    font-size: 15px;
    color: #475569;
    margin: 12px 0 18px;
    max-width: 95%;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
    opacity: 0.7;
    font-weight: 500;
    color: #334155;
    font-size: 13px;
}

.brand-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 12px;
    align-items: center;
}

.brand-item {
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.2px;
    font-size: 13px;
}

/* 下载区域 */
.download-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 800px;
    margin: 0px auto;
}

.scan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.scan-item {
    flex: 0 0 calc(25% - 9px);
    max-width: calc(25% - 9px);
    background: white;
    border-radius: 20px;
    padding: 16px 14px 14px;
    border: 1px solid #e9edf2;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scan-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.05);
}

.scan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 10px 0px;
}

.scan-header .icon {
    font-size: 16px;
    color: #f97316;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.scan-header .title-group {
    text-align: left;
}

.scan-header .title-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1.5;
}

.scan-header .title-group .sub {
    font-size: 11px;
    color: #475569;
    line-height: 1.5;
}

.scan-item .tag {
    font-size: 10px;
    font-weight: 600;
    color: #f97316;
    background: #fff7ed;
    padding: 0px 10px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 4px;
    line-height: 18px;
}

.scan-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.scan-meta i {
    margin-right: 2px;
}

.scan-qr {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f6;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    margin-top: 15px;
}

.scan-qr i {
    font-size: 16px;
    color: #1e293b;
    opacity: 0.35;
    transition: all 0.2s;
}

.scan-qr:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.08);
}

.scan-qr:hover i {
    opacity: 0.9;
    color: #f97316;
}

.scan-label {
    font-size: 11px;
    color: #334155;
    font-weight: 500;
}

.scan-label small {
    display: block;
    font-weight: 400;
    color: #94a3b8;
    font-size: 10px;
    margin-top: 0px;
}

.normal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.normal-item {
    flex: 0 0 calc(25% - 9px);
    max-width: calc(25% - 9px);
    background: white;
    border-radius: 18px;
    padding: 14px 14px 14px;
    border: 1px solid #e9edf2;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.normal-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.04);
}

.normal-item .tag {
    font-size: 10px;
    font-weight: 600;
    color: #f97316;
    background: #fff7ed;
    padding: 0px 10px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 4px;
    align-self: flex-start;
    line-height: 18px;
}

.normal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 10px 0px;
}

.normal-header .icon {
    font-size: 16px;
    color: #f97316;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.normal-header .title-group {
    text-align: left;
}

.normal-header .title-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1.2;
}

.normal-header .title-group .sub {
    font-size: 11px;
    color: #475569;
}

.normal-meta {
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    align-items: center;
    margin-top: 2px;
    flex-wrap: wrap;
    gap: 2px;
    padding-left: 32px;
}

.normal-meta i {
    margin-right: 2px;
}

.normal-action {
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.btn-download {
    background: #18325c;
    color: white;
    border: none;
    padding: 6px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.fbtn-download {
    padding: 12px 40px;
    border-radius: 80px;
    font-size: 18px;
    font-weight: normal;
}

.btn-download:hover {
    background: #2563eb;
    transform: scale(1.04);
}

/* 功能亮点 */
.features {
    padding: 0px 0px 24px 0px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 28px;
    text-align: center;
}

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

.feature-card {
    background: white;
    padding: 20px 16px;
    border-radius: 22px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: 0.25s ease;
}

.feature-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
}

.feature-card .icon {
    font-size: 22px;
    color: #f97316;
    margin-bottom: 10px;
    display: block;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* 版本日志 & 常见问题 */
.news-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 24px 0 40px;
}

.news-panel {
    background: white;
    border-radius: 26px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.panel-header h2 {
    font-size: 17px;
    font-weight: 600;
}

.panel-header a {
    font-size: 13px;
    color: #f97316;
    font-weight: 500;
}

.version-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.version-item .v-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
}

.version-item .v-title span {
    color: #f97316;
    font-weight: 400;
    font-size: 12px;
}

.version-item .v-desc {
    font-size: 13px;
    line-height: 20px;
    color: #475569;
    margin-top: 3px;
    padding-left: 0px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 60px;
}

.faq-list {
    list-style: none;
}

.faq-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-list li i {
    color: #f97316;
    width: 18px;
    font-size: 13px;
}

.faq-list li:last-child {
    border-bottom: none;
}

/* TV版安装教程 */
.tv-selector {
    background: #f1f5f9;
    border-radius: 18px;
    padding: 18px 20px 20px;
    margin-top: 14px;
    transition: all 0.2s;
}

.tv-selector h4 {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tv-selector h4 i {
    color: #f97316;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 18px;
    padding-right: 44px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    outline: none;
}

.custom-select select:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.custom-select select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.custom-select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select select:focus+::after,
.custom-select select:focus~::after {
    transform: translateY(-50%) rotate(180deg);
    color: #f97316;
}

.custom-select select::-ms-expand {
    display: none;
}

.tv-selector .btn-select {
    background: #18325c;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 40px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tv-selector .btn-select:hover {
    background: #2563eb;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
}

.tv-selector .btn-select i {
    transition: transform 0.2s ease;
}

.tv-selector .btn-select:hover i {
    transform: translateX(4px);
}

/* 底部 */
footer {
    background: #f1f5f9;
    color: #1e293b;
    padding: 32px 0 20px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 0 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.footer-brand .brand-icon {
    background: #f97316;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.footer-brand .brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.footer-brand .brand-name span {
    color: #f97316;
}

.footer-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
}

.footer-contact .contact-item i {
    color: #f97316;
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact .contact-item .label {
    font-weight: 500;
    color: #1e293b;
}

.footer-contact .contact-item .value {
    color: #475569;
}

.footer-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.qr-code-box {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #1e293b;
    opacity: 0.85;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.qr-code-box i {
    font-size: 42px;
    opacity: 0.4;
}

.qr-code-box:hover {
    border-color: #2563eb;
    opacity: 1;
    box-shadow: 0 4px 16px #2563eb;
    transform: scale(1.04);
}

.qr-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.qr-text .qr-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.qr-text .qr-sub {
    font-size: 12px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.footer-links a i {
    color: #f97316;
    font-size: 12px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    color: #f97316;
    transform: translateX(4px);
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 8px;
}

/* 辅助类 */
.badge-orange {
    background: #fff7ed;
    color: #f97316;
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2f6;
}

.group-header i {
    color: #f97316;
    font-size: 22px;
}

.group-header .group-sub {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

/* 二维码弹窗 */
.qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.qr-popup.active {
    display: flex;
}

.qr-popup-content {
    background: white;
    padding: 24px 32px 32px;
    border-radius: 32px;
    max-width: 280px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: popIn 0.25s ease;
}

.qr-popup-content .big-qr {
    width: 140px;
    height: 140px;
    background: #f1f5f9;
    margin: 12px auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #1e293b;
    opacity: 0.8;
    border: 2px dashed #e2e8f0;
}

.qr-popup-content .big-qr img{
    width:100%;
    border-radius: 20px;
}

.qr-popup-content h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.qr-popup-content p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
}

.qr-popup-content .close-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 8px 28px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.qr-popup-content .close-btn:hover {
    background: #2563eb;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-section {
        grid-template-columns: 1fr;
    }
    .scan-item,
    .normal-item {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
    .footer-inner {
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .footer-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .footer-contact {
        justify-content: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .nav-links {
        display: none;
    }
    .scan-item,
    .normal-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-title {
        font-size: 26px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .scan-qr {
        width: 32px;
        height: 32px;
    }
    .scan-qr i {
        font-size: 14px;
    }
    .normal-meta {
        padding-left: 0;
    }
    .custom-select select {
        padding: 10px 16px;
        padding-right: 40px;
        font-size: 13px;
    }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .footer-brand .brand-name {
        font-size: 18px;
    }
    .footer-contact {
        justify-content: center;
        gap: 12px;
    }
    .footer-contact .contact-item {
        font-size: 12px;
    }
    .footer-qr {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .qr-code-box {
        width: 100px;
        height: 100px;
        font-size: 42px;
    }
    .qr-code-box i {
        font-size: 42px;
    }
    .qr-text .qr-label {
        font-size: 13px;
    }
    .qr-text .qr-sub {
        font-size: 11px;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
    }
    .footer-links a {
        font-size: 13px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}