/* 现代化汽车涂色页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cars Coloring Page Description Section */
.cars-description-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.description-container {
    padding: 3rem;
    text-align: left;
    line-height: 1.8;
}

.description-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.description-container h3 {
    font-size: 1.8rem;
    color: #667eea;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.description-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.description-container ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.description-container li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.description-container strong {
    color: #667eea;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cars-description-section {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .description-container {
        padding: 2rem 1.5rem;
    }
    
    .description-container h2 {
        font-size: 2rem;
    }
    
    .description-container h3 {
        font-size: 1.5rem;
    }
    
    .description-container p,
    .description-container li {
        font-size: 1rem;
    }
    
    .new-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .head-title {
        text-align: center;
    }
}

/* 导航栏样式 */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    margin-bottom: 1rem;
}

.nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav a:hover {
    transform: translateY(-2px);
}

.logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg);
}

.nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主要内容容器 */
.new-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 左侧图片展示区 */
.new-left {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.new-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.head-title-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.head-title-img:hover {
    transform: scale(1.1);
}

.head-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    text-align: left;
}

/* 游戏预览区域 */
.game-preload {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.game-preload::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-preload img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-preload img:hover {
    transform: scale(1.05);
}

/* 中间图片网格区域 */
.new-middle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.new-middle::-webkit-scrollbar {
    width: 8px;
}

.new-middle::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.new-middle::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* 图片网格布局 */
.game-list-container5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.box5 {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.box5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.box5:hover::before {
    left: 100%;
}

.box5:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.box5 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.box5:hover img {
    transform: scale(1.05);
}

.box5 h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
    color: #333;
    font-weight: 600;
}

.box5 p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* 右侧图片展示区 */
.new-right {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.image-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.right-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* 模态框样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.overlay-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button.blue {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.button.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.button.green {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.button.green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .new-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-list-container5 {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .new-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .new-left, .new-middle, .new-right {
        padding: 1rem;
    }
    
    .game-list-container5 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .box5 img {
        height: 150px;
    }
    
    .right-image {
        height: 120px;
    }
    
    .overlay-content {
        padding: 1rem;
        margin: 1rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-list-container5 {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .box5 img {
        height: 120px;
    }
    
    .nav h1 {
        font-size: 1.2rem;
    }
}

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

.box5, .right-image, .new-left, .new-middle, .new-right {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* 工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 选择样式 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* Cars Footer Styles */
.cars-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    margin-top: 3rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

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

.footer-content {
    padding: 3rem 0;
    text-align: left;
    line-height: 1.8;
}

.footer-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-content h4 {
    font-size: 1.6rem;
    color: #667eea;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.footer-content h5 {
    font-size: 1.3rem;
    color: #764ba2;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.footer-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.benefit-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-stats,
.footer-cta {
    background: rgba(118, 75, 162, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.footer-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-copyright p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.footer-copyright a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
    .cars-footer {
        margin-top: 2rem;
        border-radius: 15px 15px 0 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
    
    .footer-content h3 {
        font-size: 1.8rem;
    }
    
    .footer-content h4 {
        font-size: 1.4rem;
    }
    
    .footer-content h5 {
        font-size: 1.2rem;
    }
    
    .footer-content p,
    .benefit-item p {
        font-size: 1rem;
    }
    
    .footer-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.2rem;
    }
    
    .footer-stats,
    .footer-cta {
        padding: 1.5rem;
    }
}