/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f6f7;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1E88E5;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-bar button {
    background-color: #0084ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 15px;
    font-size: 20px;
    color: #666;
}

.main-nav {
    border-top: 1px solid #eee;
}

.main-nav ul {
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
}

.main-nav li {
    padding: 10px 0;
    position: relative;
}

.main-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0084ff;
}

.main-nav a {
    padding: 10px 15px;
    font-size: 16px;
}

/* 下载横幅 */
.download-banner {
    background-color: #0084ff;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.banner-content {
    flex: 1;
}

.banner-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 10px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.download-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-black {
    background-color: #000;
    color: white;
}

.btn-black:hover {
    background-color: #333;
}

.btn-gradient-blue {
    background: linear-gradient(to right, #1976D2, #64B5F6);
    color: white;
}

.btn-gradient-blue:hover {
    background: linear-gradient(to right, #1565C0, #42A5F5);
}

.btn-gradient-green {
    background: linear-gradient(to right, #2E7D32, #4CAF50);
    color: white;
}

.btn-gradient-green:hover {
    background: linear-gradient(to right, #1B5E20, #388E3C);
}

.more-info {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
}

.banner-image {
    flex: 0 0 100px;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
}

/* 论坛标签页 */
.forum-tabs {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 15px 20px;
    font-size: 16px;
    position: relative;
}

.tab.active {
    color: #0084ff;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0084ff;
}

/* 用户排行榜 */
.user-ranking {
    padding: 15px;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rank-title {
    font-size: 16px;
    font-weight: bold;
}

.ranking-tabs a {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
}

.ranking-tabs a.active {
    color: #0084ff;
    font-weight: bold;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rank-number {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: #ff6b00;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 15px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: bold;
}

.user-status {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.user-points {
    color: #ff6b00;
    font-size: 14px;
}

/* 论坛内容 */
.forum-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
}

.content-tabs .tab {
    padding: 15px 20px;
    font-size: 16px;
}

.post-list {
    padding: 15px;
}

.post-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-header {
    margin-bottom: 5px;
}

.post-author {
    font-weight: bold;
}

.post-tag {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.post-text {
    margin-bottom: 10px;
}

.post-stats {
    font-size: 12px;
    color: #666;
}

/* 产品截图 - 内联版本，无白色背景 */
.app-screenshots-inline {
    padding: 20px 0;
    text-align: center;
}

.app-screenshots-inline h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.screenshot-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: center;
}

.screenshot {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    object-fit: cover;
}

.screenshot p {
    margin-top: 8px;
    font-size: 12px;
    color: white;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.footer-section a {
    color: #666;
    font-size: 14px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 12px;
}

/* 浮动下载按钮 */
.floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.download-app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #0084ff;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .logo {
        margin-bottom: 10px;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
    }

    .download-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-content {
        margin-bottom: 20px;
    }

    .download-buttons {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    /* 产品截图移动端优化 */
    .app-screenshots-inline {
        padding: 15px 0;
    }

    .app-screenshots-inline h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .screenshot-container {
        gap: 10px;
        padding-bottom: 3px;
    }

    .screenshot {
        width: 100px;
    }

    .screenshot img {
        max-height: 150px;
    }

    .screenshot p {
        font-size: 11px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        justify-content: space-between;
    }

    .main-nav a {
        padding: 10px 5px;
        font-size: 14px;
    }

    .tab {
        padding: 10px;
        font-size: 14px;
    }

    .ranking-item {
        flex-wrap: wrap;
    }

    .user-points {
        width: 100%;
        margin-top: 5px;
        margin-left: 45px;
    }

    .floating-download {
        bottom: 20px;
        right: 20px;
    }

    .download-app-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* 小屏幕产品截图进一步优化 */
    .app-screenshots-inline {
        padding: 12px 0;
    }

    .app-screenshots-inline h2 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .screenshot-container {
        gap: 8px;
        padding-bottom: 2px;
    }

    .screenshot {
        width: 80px;
    }

    .screenshot img {
        max-height: 120px;
    }

    .screenshot p {
        font-size: 10px;
        margin-top: 4px;
    }
}