/* ===================================================
   Spark Studio Portal - Frontend Stylesheet v4
   设计灵感：NexusV 极简风格 + 蓝色 #3354AA 配色
   大圆角 / 充足留白 / 卡片网格 / 现代极简
   =================================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
                 "Source Han Sans CN", "Noto Sans CJK SC",
                 "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif;
    font-size: 16px;
    background-color: #FAFAFA;
    color: #1A1A1A;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft Yahei", sans-serif;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

a {
    color: #3354AA;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

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

/* ===== 容器 ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 页头 Header ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 32px;
    width: auto;
}

#logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

#logo:hover {
    opacity: 1;
    color: #3354AA;
}

.header-description {
    display: none;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

#nav-menu a {
    display: block;
    padding: 8px 16px;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

#nav-menu a:hover,
#nav-menu a.current {
    background: rgba(51, 84, 170, 0.08);
    color: #3354AA;
    opacity: 1;
}

/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #1A1A1A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero 首屏区域 ===== */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
    background: #FAFAFA;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    color: #1A1A1A;
    margin-bottom: 0.5em;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: #888;
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 2em;
    line-height: 1.6;
}

/* 搜索框样式 */
.hero-search {
    max-width: 560px;
    margin: 0 auto 1.5em;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    font-size: 0.9375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #F0F0F0;
    color: #1A1A1A;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hero-search-input:focus {
    border-color: #3354AA;
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(51, 84, 170, 0.1);
}

.hero-search-input::placeholder {
    color: #AAA;
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #1A1A1A;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 1.1rem;
}

.hero-search-btn:hover {
    background: #3354AA;
}

/* 快速操作芯片 */
.hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5em;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    background: #FFF;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero-chip:hover {
    border-color: #3354AA;
    color: #3354AA;
    opacity: 1;
    background: rgba(51, 84, 170, 0.04);
}

/* ===== Section 通用 ===== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: #FFF;
}

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

.section-title h2 {
    font-size: 1.75rem;
    color: #1A1A1A;
    margin-bottom: 0.3em;
}

.section-title .section-subtitle {
    color: #999;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ===== 产品卡片网格 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #FFF;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card:hover {
    border-color: rgba(51, 84, 170, 0.2);
    box-shadow: 0 8px 32px rgba(51, 84, 170, 0.08);
    transform: translateY(-2px);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #3354AA;
    background: rgba(51, 84, 170, 0.08);
    flex-shrink: 0;
}

.product-name {
    font-size: 1.125rem;
    margin: 0;
}

.product-name a {
    color: #1A1A1A;
}

.product-name a:hover {
    color: #3354AA;
    opacity: 1;
}

.product-desc {
    color: #777;
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

/* ===== 价值观卡片 ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.value-card {
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #FFF;
    transition: all 0.25s ease;
}

.value-card:hover {
    border-color: rgba(51, 84, 170, 0.2);
    box-shadow: 0 8px 32px rgba(51, 84, 170, 0.08);
    transform: translateY(-2px);
}

.value-card-icon {
    font-size: 1.5rem;
    color: #3354AA;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.value-card h4 {
    font-size: 1.0625rem;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.value-card p {
    color: #888;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* ===== 资讯列表 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post {
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #FFF;
    transition: all 0.25s ease;
}

.post:hover {
    border-color: rgba(51, 84, 170, 0.2);
    box-shadow: 0 8px 32px rgba(51, 84, 170, 0.06);
}

.post-title {
    font-size: 1.1875rem;
    margin-bottom: 8px;
}

.post-title a {
    color: #1A1A1A;
}

.post-title a:hover {
    color: #3354AA;
    opacity: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #AAA;
    font-size: 0.8125rem;
    list-style: none;
    margin-bottom: 12px;
}

.post-meta li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-content {
    line-height: 1.65;
    word-wrap: break-word;
}

.post-content p {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.post-cover {
    margin: 0 0 12px;
    border-radius: 14px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
}

.post-readmore {
    margin-top: 12px;
    font-size: 0.875rem;
}

.post-readmore a {
    color: #3354AA;
    font-weight: 500;
}

.news-empty {
    text-align: center;
    padding: 48px 0;
    color: #BBB;
    font-size: 0.9375rem;
}

/* ===== 发展历程 ===== */
.timeline {
    max-width: 640px;
    margin: 0 auto;
    padding-left: 24px;
    border-left: 2px solid rgba(51, 84, 170, 0.15);
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3354AA;
    border: 3px solid #FFF;
    box-shadow: 0 0 0 2px rgba(51, 84, 170, 0.2);
}

.timeline-date {
    color: #3354AA;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content {
    color: #777;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.timeline-content strong {
    color: #1A1A1A;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

/* ===== 数字统计 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #FFF;
    transition: all 0.25s ease;
}

.stat-item:hover {
    border-color: rgba(51, 84, 170, 0.2);
    box-shadow: 0 8px 32px rgba(51, 84, 170, 0.06);
}

.stat-number {
    font-size: 2.25rem;
    color: #3354AA;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-label {
    color: #999;
    font-size: 0.8125rem;
    margin-top: 6px;
}

/* ===== 关于区域 ===== */
.about-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1em;
    text-align: justify;
    text-justify: inter-ideograph;
    text-indent: 2em;
}

/* 引用块 */
.about-quote {
    margin: 2em 0;
    padding: 24px 28px;
    border-left: 4px solid #3354AA;
    background: rgba(51, 84, 170, 0.04);
    border-radius: 0 16px 16px 0;
    color: #555;
    font-style: italic;
    text-align: left;
    line-height: 1.85;
    text-indent: 0;
    font-size: 0.9375rem;
}

.about-slogan {
    font-size: 1.375rem;
    color: #3354AA;
    font-style: italic;
    margin-top: 1.5em;
    text-align: center;
    letter-spacing: 0.03em;
    text-indent: 0;
    font-weight: 600;
}

/* ===== 页脚 Footer ===== */
#footer {
    padding: 48px 0 40px;
    text-align: center;
    color: #AAA;
    font-size: 0.875rem;
    background: #FFF;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 32px;
    margin: 0 auto;
}

.footer-copyright {
    margin-bottom: 8px;
    color: #888;
}

.footer-links {
    margin: 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: #888;
    font-size: 0.8125rem;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    border-color: #3354AA;
    color: #3354AA;
    opacity: 1;
}

.footer-icp a,
.footer-contact a {
    color: #AAA;
}

.footer-icp a:hover,
.footer-contact a:hover {
    color: #3354AA;
    opacity: 1;
}

.footer-contact {
    margin-top: 6px;
}

/* ===== 社交媒体图标 ===== */
.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    border-color: #3354AA;
    background: rgba(51, 84, 170, 0.04);
    opacity: 1;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: #999;
    transition: fill 0.2s ease;
}

.footer-social a:hover svg {
    fill: #3354AA;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border: none;
    background: #1A1A1A;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 18px;
    color: #FFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3354AA;
}

/* ===== 骨架屏 ===== */
.skeleton {
    background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .menu-toggle {
        display: flex;
    }

    #nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #FFF;
        padding: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        gap: 0;
    }

    #nav-menu.open {
        display: flex;
    }

    #nav-menu a {
        padding: 12px 16px;
        border-radius: 10px;
    }

    .hero {
        padding: 48px 16px 40px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-search-input {
        padding: 14px 50px 14px 16px;
        font-size: 0.875rem;
    }

    .hero-search-btn {
        width: 36px;
        height: 36px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 1.375rem;
    }

    .products-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .product-card,
    .value-card {
        padding: 20px;
    }

    .post {
        padding: 18px;
    }

    .post-title {
        font-size: 1.0625rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 18px 12px;
    }

    .stat-number {
        font-size: 1.625rem;
    }

    .about-content p {
        text-align: left;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}
