/* 全局变量 */
:root {
    --primary-color: #ff4500;
    --accent-color: #ffa07a;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: rgba(0, 0, 0, 0.7);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --card-border: 2px solid var(--primary-color);
    --font-main: 'Microsoft YaHei', sans-serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 页面背景样式 */
.main-page, .home-page, .articles-page, .media-page, .messages-page, .friends-page {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url(../images/naruto-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform;
}

/* 背景遮罩 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* 主容器样式 */
.main-container {
    position: relative;
    z-index: 2;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

/* Logo容器 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-logo {
    width: 60px;
    height: 60px;
    animation: bounce 2s ease-in-out infinite;
}

.site-title {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 板块网格布局 */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 120px;
}

.section-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.2);
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.8);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.section-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.section-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-content p {
    color: var(--text-color);
    opacity: 0.9;
}

/* 动画关键帧 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        margin-bottom: 160px;
    }

    .site-title {
        font-size: 2rem;
    }

    .section-card {
        padding: 2rem;
    }

    .homepage-ad-video {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 16px;
        width: 90%;
    }

    .logo-container {
        margin: 1rem 0;
        flex-direction: column;
        text-align: center;
    }
}

/* 针对大屏幕优化 */
@media (min-width: 1400px) {
    .sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 针对超大屏幕优化 */
@media (min-width: 1920px) {
    .homepage-ad-video {
        right: calc((100vw - 1400px) / 2 + 32px);
    }
}

/* 通用链接样式 */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* 通用按钮样式 */
button {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: var(--accent-color);
}

/* 通用输入框样式 */
input, textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 广告视频容器样式 */
.homepage-ad-video {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    max-width: 90vw;
    padding: 1rem 0.5rem 0.7rem 0.5rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.homepage-ad-video video {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ad-caption {
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-size: 1.02rem;
    font-weight: bold;
    text-align: center;
} 