/* style.css - 星空科技官方网站完整样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
}
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}
body.dark header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
body.dark .logo {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
body.dark nav a {
    color: #94a3b8;
}
nav a:hover {
    color: #6366f1;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-box input {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    outline: none;
    width: 180px;
    transition: 0.2s;
}
body.dark .search-box input {
    background: rgba(30, 41, 59, 0.6);
    border-color: #475569;
    color: #e2e8f0;
}
.search-box input:focus {
    border-color: #6366f1;
    width: 220px;
}
.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
}
.theme-toggle:hover,
.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}
body.dark .theme-toggle:hover,
body.dark .menu-toggle:hover {
    background: rgba(129, 140, 248, 0.15);
}
.menu-toggle {
    display: none;
}
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 12px;
    }
    nav.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .search-box input {
        width: 140px;
    }
}
/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
    color: #64748b;
}
body.dark .breadcrumb {
    color: #94a3b8;
}
.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin: 20px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.hero .btn {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: #6366f1;
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.hero img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
/* sections */
section {
    margin: 40px 0;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.dark .card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.card h3 {
    margin-bottom: 12px;
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    margin-top: 8px;
}
/* article */
article {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(226, 232, 240, 0.4);
}
body.dark article {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(51, 65, 85, 0.3);
}
/* aside */
aside {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}
body.dark aside {
    background: rgba(30, 41, 59, 0.3);
}
/* footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
}
body.dark footer {
    background: rgba(2, 6, 23, 0.95);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-grid h4 {
    color: white;
    margin-bottom: 12px;
}
.footer-grid a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.footer-grid a:hover {
    color: #818cf8;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 20px;
    font-size: 0.9rem;
}
.qr-codes {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}
.qr-codes svg {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: white;
    padding: 4px;
}
/* back to top */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #6366f1;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: 0.2s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}
.back-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-top:hover {
    transform: scale(1.05);
}
/* faq */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}
body.dark .faq-item {
    border-color: #334155;
}
.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.faq-answer {
    margin-top: 8px;
    color: #475569;
    display: none;
}
body.dark .faq-answer {
    color: #94a3b8;
}
.faq-item.open .faq-answer {
    display: block;
}
/* howto */
.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.howto-step .step-num {
    background: #6366f1;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
/* lazy */
.lazy {
    opacity: 0;
    transition: opacity 0.4s;
}
.lazy.loaded {
    opacity: 1;
}
/* scroll animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* carousel */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    padding: 20px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.carousel-btn.prev {
    left: 12px;
}
.carousel-btn.next {
    right: 12px;
}
body.dark .carousel-btn {
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
}
/* number scroll */
.num-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
}
body.dark .num-highlight {
    color: #818cf8;
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 40px 20px;
    }
}