/* ========================================
   恒康佳业 - Home 首页样式
   四大体育系统板块 | 科技简约红调暗色
   ======================================== */

/* CSS 变量（继承主站风格，可独立调整） */
:root {
    --primary: #c41e3a;
    --primary-dark: #9b1830;
    --primary-light: #e63946;
    --accent: #ff4d4f;
    --accent-glow: rgba(255, 77, 79, 0.3);
    --dark: #0a0a0a;
    --dark-secondary: #111111;
    --dark-card: #161616;
    --dark-border: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
    --gradient-card: linear-gradient(145deg, rgba(22, 22, 22, 0.95) 0%, rgba(12, 12, 12, 0.85) 100%);
    --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.2);
    --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.home-body {
    font-family: var(--font-main);
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   顶部导航
   ======================================== */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.home-logo-link {
    display: flex;
    align-items: center;
}

.home-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   主内容区
   ======================================== */
.home-main {
    padding-top: 70px;
}

/* ========================================
   品牌/Logo 区域
   ======================================== */
.brand-section {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px 60px;
}

.brand-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 30, 58, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 58, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-glow-1 {
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.18) 0%, transparent 70%);
    animation: glow-pulse 6s ease-in-out infinite;
}

.bg-glow-2 {
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.12) 0%, transparent 70%);
    animation: glow-pulse 8s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* 品牌内容 */
.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.brand-logo-wrapper {
    margin-bottom: 28px;
    animation: logo-reveal 0.8s ease-out both;
}

.brand-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(196, 30, 58, 0.3));
    transition: transform 0.4s ease;
}

.brand-logo-wrapper:hover .brand-logo-img {
    transform: scale(1.05);
}

@keyframes logo-reveal {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 12px;
    animation: fade-in-up 0.6s ease-out 0.2s both;
}

.brand-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 8px;
    margin-bottom: 28px;
    animation: fade-in-up 0.6s ease-out 0.35s both;
}

.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    animation: fade-in-up 0.6s ease-out 0.5s both;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-icon {
    color: var(--accent);
    font-size: 10px;
}

.brand-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fade-in-up 0.6s ease-out 0.65s both;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   四大系统板块区域
   ======================================== */
.systems-section {
    padding: 50px 24px 100px;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.25);
    border-radius: 50px;
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* 四大板块网格 */
.systems-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ========================================
   系统卡片
   ======================================== */
.system-card {
    position: relative;
    display: block;
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-height: 340px;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-bg-pattern {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(196, 30, 58, 0.04) 0%, transparent 50%);
    pointer-events: none;
    transition: var(--transition);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: background 0.4s ease;
    border-radius: 50%;
}

/* 卡片悬浮效果 */
.system-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 30, 58, 0.35);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.system-card:hover::before {
    transform: scaleX(1);
}

.system-card:hover .card-bg-pattern {
    background: radial-gradient(circle at 70% 30%, rgba(196, 30, 58, 0.07) 0%, transparent 50%);
}

.system-card:hover .card-glow {
    background: radial-gradient(circle, rgba(196, 30, 58, 0.06) 0%, transparent 70%);
}

.system-card:hover .icon-circle {
    transform: scale(1.1);
    border-color: rgba(196, 30, 58, 0.5);
    background: rgba(196, 30, 58, 0.15);
}

.system-card:hover .icon-ring {
    transform: scale(1.3);
    opacity: 1;
}

.system-card:hover .system-action i {
    transform: translateX(6px);
}

.system-card:hover .deco-dot {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

/* 卡片内容 */
.card-content {
    position: relative;
    z-index: 1;
}

/* 系统图标 */
.system-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.icon-circle i {
    font-size: 30px;
    color: var(--accent);
}

.icon-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px dashed rgba(196, 30, 58, 0.25);
    border-radius: 24px;
    transition: var(--transition);
    opacity: 0.5;
    animation: ring-rotate 20s linear infinite;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 系统名称 */
.system-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.system-name-en {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 500;
}

.system-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 功能列表 */
.system-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 24px;
}

.system-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.system-features li i {
    color: var(--accent);
    font-size: 11px;
    flex-shrink: 0;
}

/* 进入按钮 */
.system-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.system-action i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* 装饰元素 */
.card-decoration {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 0;
    pointer-events: none;
}

.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.15));
}

.deco-line-1 {
    width: 60px;
    height: 1px;
    bottom: 0;
    right: 0;
}

.deco-line-2 {
    width: 1px;
    height: 40px;
    bottom: 0;
    right: 0;
}

.deco-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    background: rgba(196, 30, 58, 0.4);
    border-radius: 50%;
    transition: var(--transition);
}

/* ========================================
   底部
   ======================================== */
.home-footer {
    background: var(--dark-secondary);
    border-top: 1px solid var(--dark-border);
    padding: 48px 24px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo-sm {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-slogan {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-contact {
    color: var(--text-secondary) !important;
}

/* ========================================
   滚动动画
   ======================================== */
.system-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.system-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.system-card:nth-child(1).visible { transition-delay: 0s; }
.system-card:nth-child(2).visible { transition-delay: 0.12s; }
.system-card:nth-child(3).visible { transition-delay: 0.24s; }
.system-card:nth-child(4).visible { transition-delay: 0.36s; }

/* ========================================
   响应式设计
   ======================================== */

/* 平板及以下 */
@media (max-width: 900px) {
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .system-card {
        min-height: auto;
        padding: 32px 28px;
    }

    .system-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .home-header {
        padding: 12px 0;
    }

    .brand-section {
        min-height: 52vh;
        padding: 60px 20px 44px;
    }

    .brand-logo-img {
        height: 60px;
    }

    .brand-subtitle {
        letter-spacing: 4px;
    }

    .brand-divider .divider-line {
        width: 40px;
    }

    .systems-section {
        padding: 56px 20px 72px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .system-name {
        font-size: 22px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .icon-circle i {
        font-size: 24px;
    }

    .header-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }

    .system-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .brand-title {
        letter-spacing: 2px;
    }

    .system-card {
        padding: 26px 22px;
    }

    .system-name {
        font-size: 20px;
    }

    .system-desc {
        font-size: 13px;
    }
}
