/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #4ecdc4;
    letter-spacing: 0.5rem;
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: #4ecdc4;
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ecdc4;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4ecdc4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ecdc4;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particles {
    width: 100%;
    height: 100%;
}

/* 三等分布局样式 */
.three-column-layout {
    width: 100%;
    padding: 2rem;
    z-index: 2;
}

.layout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.layout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    height: 70vh;
}

.layout-column {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-content {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.column-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.column-image:hover {
    transform: scale(1.05);
}

.user-avatar {
    border-color: #4ecdc4;
}

.main-image {
    width: 300px;
    height: 450px;
    border-radius: 15px;
    border-color: #ffffff;
}

.column-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.column-text p {
    font-size: 1.1rem;
    color: #cccccc;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-subtitle span {
    font-size: 1.1rem;
    color: #cccccc;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-subtitle span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #4ecdc4;
    border-bottom: 2px solid #4ecdc4;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* 关于我区域 */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #4ecdc4;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ecdc4;
}

.stat-label {
    font-size: 0.9rem;
    color: #999999;
    margin-top: 0.5rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-content h4 {
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.card-content li:last-child {
    border-bottom: none;
}

/* 技能区域 - 横向滚动卡片 */
.skills {
    padding: 6rem 0;
    background: #0a0a0a;
}

.horizontal-cards-container {
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-cards-container::-webkit-scrollbar {
    display: none;
}

.cards-track {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    min-width: min-content;
}

.card {
    min-width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.card-back {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    text-align: center;
}

.card-content i {
    font-size: 3rem;
    margin-bottom: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.2rem;
}

/* 我的游戏世界区域样式 */
.games {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.games-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.games-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* 静态网格卡片容器 */
.horizontal-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
    justify-content: center;
}

.cards-track {
    display: contents;
}

/* 游戏卡片样式 */
.card {
    flex: 0 0 350px;
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* 鼠标悬停翻面效果 */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-front {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.card-front .card-content i {
    font-size: 4rem;
    margin-bottom: 30px;
    color: #4ecdc4;
}

.card-front .card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.card-front .card-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-back {
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card-back .card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.game-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-item i {
    margin-right: 30px;
    color: #4ecdc4;
    width: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 完整游戏列表样式 */
.full-game-list {
    margin-top: 60px;
    text-align: center;
}

.full-game-list h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.category {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.category h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.category p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        flex: 0 0 280px;
        height: 350px;
    }
    
    .card-front .card-content i {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .card-front .card-content h3 {
        font-size: 1.5rem;
    }
    
    .game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .games-intro p {
        font-size: 1rem;
    }
}

/* 游戏伙伴邀请区域 */
.partner {
    padding: 6rem 0;
    background: #0a0a0a;
}

.partner-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.partner-info h3 {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.partner-info p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.partner-details {
    margin-bottom: 2rem;
}

.partner-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cccccc;
}

.partner-item i {
    color: #4ecdc4;
    margin-right: 30px;
    font-size: 1.2rem;
}

.game-list h4 {
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.game-list p {
    color: #cccccc;
    line-height: 1.6;
}

.partner-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-form h4 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

/* 表单消息样式 */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    display: block;
}

.form-message.info {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: #3498db;
    display: block;
}

/* 页脚 */
.footer {
    background: #000000;
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    color: #999999;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer-links span {
    color: #666666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* 三等分布局移动端适配 */
    .layout-row {
        flex-direction: column;
        height: auto;
        gap: 3rem;
        padding: 2rem 0;
    }
    
    .layout-column {
        flex: none;
        height: auto;
        min-height: 250px;
    }
    
    .column-image {
        width: 150px;
        height: 150px;
    }
    
    .main-image {
        width: 200px;
        height: 300px;
    }
    
    .column-text h3 {
        font-size: 1.5rem;
    }
    
    .column-text p {
        font-size: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        gap: 0.5rem;
    }
    
    .hero-subtitle span {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .partner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-track {
        padding: 0 1rem;
    }
    
    .card {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card {
        min-width: 250px;
        height: 350px;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #44a08d;
}