/* 北京象限光年科技有限公司 - 公司主页样式（增强版）
 * 注意：字体通过 HTML <link> 加载，避免 @import 在 Edge 等浏览器中可能导致的整份样式表加载失败
 */

:root {
    --company-primary: #0f0f23;
    --company-accent: #6366f1;
    --company-accent-light: #818cf8;
    --company-accent-dark: #4f46e5;
    --company-warm: #f59e0b;
    --company-success: #10b981;
    --company-bg: #fafbfc;
    --company-card-bg: #ffffff;
    --company-text: #1e1e2e;
    --company-text-muted: #64748b;
    --company-border: #e2e8f0;
    --company-coming: #94a3b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--company-text);
    background: var(--company-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 顶栏已统一为 public.css 中的 .public-navbar（layouts/partials/public_navbar.html） */

/* ========== Hero 区域 ========== */
.company-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    /* 深色背景兜底，避免 Edge 等浏览器在渐变/网格未加载时显示白底 */
    background: #0f0f23;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #2d1b4e 70%, #1e1e3a 100%);
}

.hero-mesh {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: 
        radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
    opacity: 0.9;
}

.hero-grid {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--company-accent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--company-warm);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--company-accent-light);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.hero-badge.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge i {
    color: var(--company-warm);
}

.hero-title {
    position: relative;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--company-card-bg);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-title-main {
    position: relative;
    z-index: 1;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.hero-title.animate-in .hero-title-main {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
    -webkit-filter: blur(30px);
    filter: blur(30px);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-company-full {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.hero-company-full.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
}

.hero-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.hero-scroll-btn:hover {
    color: white;
}

.hero-scroll-btn i {
    font-size: 1.25rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========== 产品区域 ========== */
.products-section {
    padding: 80px 0 60px;
    scroll-margin-top: 72px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--company-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--company-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--company-text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.15s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.25s; }

.product-card-inner {
    background: var(--company-card-bg);
    padding: 2rem;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--company-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover .product-card-inner {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-card.available:hover .product-card-inner {
    border-color: var(--company-accent);
}

.product-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.product-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s;
}

.product-card:hover .product-icon {
    transform: scale(1.05);
}

.product-icon-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    opacity: 0.3;
}

.product-card:nth-child(1) .product-icon,
.product-card:nth-child(1) .product-icon-bg { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.product-card:nth-child(2) .product-icon,
.product-card:nth-child(2) .product-icon-bg { background: linear-gradient(135deg, #10b981, #34d399); }
.product-card:nth-child(3) .product-icon,
.product-card:nth-child(3) .product-icon-bg { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.product-card:nth-child(4) .product-icon,
.product-card:nth-child(4) .product-icon-bg { background: linear-gradient(135deg, #ec4899, #f472b6); }

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--company-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--company-text-muted);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.product-btn.primary {
    background: linear-gradient(135deg, var(--company-accent), var(--company-accent-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.product-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.product-btn.coming {
    background: var(--company-bg);
    color: var(--company-coming);
    cursor: pointer;
}

.product-btn.coming:hover {
    background: #e2e8f0;
    color: var(--company-text-muted);
}

/* 数据亮点（在产品区域内，距产品卡片 3rem，与 section-header 一致） */
.stats-in-products {
    margin-top: 3rem;
}

/* 关于我们快捷链接（无背景，仅文字） */
.about-scroll-link {
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.about-scroll-link.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--company-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.about-scroll-btn:hover {
    color: var(--company-accent);
}

.about-scroll-btn i {
    font-size: 1.25rem;
    animation: bounce 2s ease-in-out infinite;
}

/* ========== 数据亮点（独立 section 已合并到产品区，保留 stats-grid 基础样式） ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats-in-products .stat-item {
    padding: 1.5rem 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--company-accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--company-text-muted);
}

/* ========== 关于我们 ========== */
.about-section {
    padding: 100px 0;
    background: #eef2f7;
    scroll-margin-top: 72px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 抽象插画容器 */
.about-illustration {
    width: 380px;
    height: 266px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.about-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.about-content .section-tag {
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--company-primary);
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--company-text-muted);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--company-text-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--company-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.about-cta:hover {
    background: var(--company-accent-dark);
    color: white;
    transform: translateY(-2px);
}

/* ========== CTA 区域 - 与关于我们同色无缝隙 ========== */
.cta-section {
    padding: 48px 0;
    background: #eef2f7;
}

.cta-content {
    text-align: center;
    padding: 1.5rem 2rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--company-primary);
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--company-text-muted);
    margin-bottom: 1.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
}

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

.cta-btn.primary:hover {
    background: var(--company-accent-light);
    color: white;
    transform: translateY(-2px);
}

.cta-btn.outline {
    background: transparent;
    color: var(--company-accent);
    border: 2px solid var(--company-accent);
}

.cta-btn.outline:hover {
    border-color: var(--company-accent-dark);
    color: var(--company-accent-dark);
    background: rgba(99, 102, 241, 0.08);
}

/* ========== 页脚 - 与顶部网格底纹风格统一 ========== */
.company-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    overflow: hidden;
}

.company-footer .footer-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}

.company-footer .footer-bg-gradient {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #1e1e3a 100%);
}

.company-footer .footer-bg-mesh {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: 
        radial-gradient(at 60% 80%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 20% 20%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
    opacity: 0.9;
}

.company-footer .footer-bg-grid {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.company-footer .footer-inner {
    position: relative;
    z-index: 1;
}

.company-footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.company-footer .footer-company {
    font-size: 1rem;
    font-weight: 600;
}

.company-footer .footer-short {
    font-size: 0.9rem;
    opacity: 0.85;
}

.company-footer .footer-contact p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.company-footer .footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.company-footer .footer-contact a:hover {
    text-decoration: underline;
}

.company-footer .footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.company-footer .footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== 占位页 ========== */
.placeholder-page {
    padding: 140px 0 80px;
    text-align: center;
    min-height: 60vh;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--company-coming);
    margin-bottom: 1.5rem;
}

.placeholder-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--company-primary);
    margin-bottom: 0.5rem;
}

.placeholder-desc {
    color: var(--company-text-muted);
    margin-bottom: 2rem;
}

.placeholder-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--company-accent);
    text-decoration: none;
    font-weight: 500;
}

.placeholder-back:hover {
    color: var(--company-accent-dark);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-visual {
        min-height: 240px;
    }
    .about-illustration {
        width: 320px;
        height: 224px;
    }
}

@media (max-width: 768px) {
    .company-hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-visual {
        min-height: 200px;
    }
    .about-illustration {
        width: 280px;
        height: 196px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    .company-footer .footer-row {
        flex-direction: column;
        text-align: center;
    }
}
