/* 引入 Google Fonts 的 Inter 和 Roboto 字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #165DFF;
    --secondary-color: #FFD700;
    --dark-color: #333;
    --light-color: #f8fafc;
    --dark-bg: #000000;
    --shadow-color: rgba(109, 104, 104, 0.1);
    --accent-color: #ff5722;
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--light-color);
    color: var(--dark-color);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面部分 */
.page-section {
    padding: 100px 0;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.25rem;
    color: #64748B;
    max-width: 800px;
    margin: 0 auto;
}

/* 首页（Jumbotron） */
.jumbotron {
    background-image: url('home_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 70px 0;
    margin-top: 56px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: zoomIn 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.jumbotron .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.jumbotron h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.jumbotron p {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.jumbotron .btn-primary {
    padding: 15px 35px;
    font-size: 1.4rem;
    border-radius: 5px;
    background-color: var(--primary-color);
    border: none;
    transition: var(--transition);
    box-shadow: 0 3px 5px var(--shadow-color);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.jumbotron .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    color: var(--dark-color);
}

.jumbotron .btn-primary:active {
    transform: translateY(2px);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3);
}

/* 关于我们 */
#about {
    padding: 80px 0;
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: var(--transition);
}

#about img:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#about h2 {
    margin-bottom: 30px;
    font-size: 2.8rem;
    font-weight: 700;
}

#about p {
    text-align: justify;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #about .row {
        flex-direction: column;
    }

    #about img {
        margin-bottom: 30px;
    }
}

/* 作品展示 */
.portfolio-showcase {
    background-color: var(--light-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 9999px;
    border: none;
    background-color: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.portfolio-card-image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.1);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(22, 93, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-content {
    padding: 30px;
}

.portfolio-card-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.portfolio-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.portfolio-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
}

.portfolio-card-link:hover {
    text-decoration: underline;
}

.load-more-button {
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin: 60px auto 0;
}

.load-more-button:hover {
    background-color: rgba(22, 93, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

/* 横向滚动作品展示 */
.horizontal-portfolio {
    background-color: white;
}

.horizontal-portfolio .container {
    position: relative;
}

.scroll-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.scroll-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 30px;
}

.portfolio-wrapper::-webkit-scrollbar {
    display: none;
}

.portfolio-row {
    display: flex;
    gap: 30px;
    min-width: max-content;
}

.portfolio-item {
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.item-image {
    height: 400px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05);
}

.item-content {
    padding: 20px;
    background-color: white;
}

.item-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.item-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.875rem;
    color: #4B5563;
    margin-bottom: 15px;
}

.item-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.item-link:hover {
    text-decoration: underline;
}

/* 游戏卡片 */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: all 0.5s ease;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.game-card-image-container {
    position: relative;
    padding-bottom: 125%;
    overflow: hidden;
}

.game-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: white;
    z-index: 10;
}

.game-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(22, 93, 255, 0.8);
    color: white;
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.game-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-description {
    opacity: 1;
}

.game-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.game-card-link:hover {
    text-decoration: underline;
}

.game-card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.game-card-link:hover i {
    transform: translateX(4px);
}

/* 特色展示区 */
.featured-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.featured-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.featured-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.featured-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.4));
}

.featured-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .featured-content {
        flex-direction: row;
        align-items: center;
    }

    .featured-info,
    .featured-media {
        width: 50%;
    }
}

.featured-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.featured-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.featured-description {
    font-size: 1.25rem;
    color: #CBD5E1;
    margin-bottom: 32px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.feature-description {
    font-size: 0.875rem;
    color: #94A3B8;
}

.feature-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .feature-buttons {
        flex-direction: row;
    }
}

.feature-button {
    padding: 12px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.feature-button-primary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.feature-button-primary:hover {
    background-color: #E6C200;
    transform: scale(1.05);
}

.feature-button-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.feature-button-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

.featured-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(172, 170, 170, 0.25);
}

.featured-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.featured-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.featured-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.featured-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 280px;
    margin: 0 30px;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
    font-size: 1.6em;
    margin-bottom: 25px;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1em;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul.social-icons {
    list-style-type: none;
    padding: 0;
    display: flex;
}

.footer-contact ul.social-icons li {
    margin-right: 15px;
}

.footer-contact ul.social-icons li a img {
    width: 35px;
    height: 35px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.footer-contact ul.social-icons li a img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

/* 返回顶端按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}