/* css/style.css - 公共样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-top: 0;
}

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

/* 面包屑导航 */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 10px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6a11cb;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #2575fc;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #FFD700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(106, 17, 203, 0.85), rgba(37, 117, 252, 0.85)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.highlight {
    background-color: rgba(255, 215, 0, 0.85);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* APP分类导航 */
.app-categories {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
}

.category-btn.active, .category-btn:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* 应用展示区域 */
.apps-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.app-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, #f8f9fa, white);
    border-bottom: 1px solid #eee;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.douyin-icon {
    background: linear-gradient(135deg, #FF0050, #FFAA00);
}

.kuaishou-icon {
    background: linear-gradient(135deg, #FF4400, #FF8800);
}

.hongguo-icon {
    background: linear-gradient(135deg, #FF0000, #FF5500);
}

.other-icon {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
}

.reading-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.game-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.task-icon {
    background: linear-gradient(135deg, #6f42c1, #a370f7);
}

.shopping-icon {
    background: linear-gradient(135deg, #fd7e14, #ffa94d);
}

.app-info h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.app-info p {
    color: #666;
    font-size: 14px;
}

.app-content {
    padding: 20px;
}

.app-description {
    color: #555;
    margin-bottom: 15px;
}

.app-link {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.app-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.more-apps {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
}

/* APP详情页样式 */
.app-detail-hero {
    background: linear-gradient(135deg, var(--app-color-1, #6a11cb) 0%, var(--app-color-2, #2575fc) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.app-detail-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.app-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.app-main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-by-step {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.step-by-step ol {
    padding-left: 20px;
}

.step-by-step li {
    margin-bottom: 15px;
    color: #555;
}

.tips-box {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.related-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-app {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.related-app:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.invite-code-box {
    background: linear-gradient(135deg, var(--app-color-1, #6a11cb), var(--app-color-2, #2575fc));
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.copy-btn {
    background: white;
    color: var(--app-color-1, #6a11cb);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #FFD700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #FFD700;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .app-detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 80%;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }
    
    .app-main-content {
        padding: 25px;
    }
}