﻿@charset "utf-8";

/* Style Reset*/
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
h2,
font {
    margin: 0;
    padding: 0;
    border: 0;
}

input,
button,
textarea,
select,
optgroup,
option {
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
}

ul,
li,
dl,
dt,
dd,
ol {
    display: block;
    list-style: none;
}

img {
    border: 0;
}

.fl {
    float: left
}

.fr {
    float: right
}

.clear {
    clear: both;
    height: 0px;
    overflow: hidden
}

a {
    color: #000;
    text-decoration: none;
    outline: 0;
}

html {
    overflow-x: hidden;
}

body {
    background: #f5f6f8;
    min-width: 1340px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #3B82F6;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --light: #F9FAFB;
    --dark: #1F2937;
    --gray: #9CA3AF;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* 特殊导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo::after {
    content: '次元';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 特殊导航菜单 - 弧形设计 */
.nav-menu {
    position: relative;
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item a img{
    width: 30px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1));
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient);
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航栏弧形背景装饰 */
.nav-curve {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    border-radius: 0 0 50% 50% / 30px;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.05);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.navbar.scrolled .nav-curve {
    opacity: 1;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* 英雄区域 */
.hero {
    margin-top: 120px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* 装饰元素 */
.decor {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 0;
}

.decor-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.decor-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 20%;
}

/* 分类区域 */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-desc {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 热门内容区域 */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.content-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.content-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .content-img {
    transform: scale(1.05);
}

.content-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.content-info {
    padding: 20px;
}

.content-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.content-card:hover .content-title {
    color: var(--primary);
}

.content-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.content-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 最新更新区域 */
.latest-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.update-item:hover {
    background-color: rgba(59, 130, 246, 0.03);
    transform: translateX(5px);
}

.update-img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.update-content {
    flex: 1;
}

.update-category {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 标签云 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.tag {
    padding: 8px 20px;
    background-color: white;
    border-radius: 25px;
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: var(--transition);
    color: var(--dark);
}

.tag:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.2);
}

/* 页脚 */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0 40px;
}

.footer .container{
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.footer .container p{
    margin: 20px auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo::before {
    content: '';
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.footer-logo::after {
    content: '次元';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 80%;
        height: 100vh;
        padding: 100px 20px;
        box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        margin-top: 80px;
    }

    .update-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .latest-container {
        padding: 20px;
    }

    .content-card {
        min-width: 100%;
    }
}