/* 全局基础样式 - 所有页面共享 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8787;
    --accent-orange: #ffa94d;
    --accent-pink: #ffd1d1;
    --accent-blue: #4dabf7;
    --accent-green: #51cf66;
    --accent-yellow: #ffd43b;
    --accent-purple: #a78bfa;
    --bg-color: #fef6f6;
    --card-bg: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --border-color: #f0f0f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* 顶部导航栏 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--accent-pink);
}

/* 通用标签样式 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-blue {
    background: #e7f5ff;
    color: #1971c2;
}

.tag-orange {
    background: #fff4e6;
    color: #d9480f;
}

.tag-green {
    background: #ebfbee;
    color: #2f9e44;
}

.tag-yellow {
    background: #fff9db;
    color: #e67700;
}

.tag-purple {
    background: #f3f0ff;
    color: #7048e8;
}

/* 通用按钮样式 */
.btn-view {
    background: linear-gradient(135deg, #ffe8cc, #ffd8a8);
    color: #d9480f;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view:hover {
    background: linear-gradient(135deg, #ffd8a8, #ffc078);
    transform: translateY(-2px);
}

.btn-load-more {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 页脚样式 */
.footer {
    background: #2d2d2d;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-title {
    font-size: 18px;
    font-weight: 700;
}

.footer-logo-subtitle {
    font-size: 11px;
    color: #999;
}

.footer-desc {
    color: #999;
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

/* 浮动按钮和底部导航 - 默认隐藏 */
.fab-container,
.bottom-nav {
    display: none;
}

.mobile-only {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 显示移动端元素 */
    .mobile-only {
        display: block;
    }
    
    .fab-container {
        display: block;
        position: fixed;
        bottom: 100px;
        right: 20px;
        z-index: 999;
    }
    
    .fab-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 11px;
        font-weight: 600;
        transition: all 0.3s;
    }
    
    .fab-button:hover {
        transform: scale(1.05);
    }
    
    .fab-button i {
        font-size: 18px;
    }
    
    .bottom-nav {
        display: grid;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        grid-template-columns: repeat(4, 1fr);
        padding: 10px 0 15px;
        z-index: 1000;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-secondary);
        gap: 5px;
        transition: all 0.3s;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    .nav-item.active {
        color: var(--primary-color);
    }
    
    body {
        padding-bottom: 70px;
    }
}