/* 主内容区域布局 */
.main-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

/* 网站详情顶部区域 */
.website-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 30px;
}

.website-info {
    flex: 1;
}

.website-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.website-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.website-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-red {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-red:hover {
    background: #ff3742;
}

.btn-green {
    background: #2ed573;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-green:hover {
    background: #26c464;
}

.website-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tag-blue {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.tag-orange {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

/* 数据卡片区域 */
.stats-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.stats-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.stat-items {
    display: flex;
    gap: 15px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bg-pink {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
}

.bg-blue {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
    color: white;
}

.bg-green {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
}

.stat-item .value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 12px;
    opacity: 0.9;
}

/* 内容分栏布局 */
.content-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.content-left {
    flex: 2;
}

.content-right {
    flex: 1;
}

/* 通用区块样式 */
.section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 相关导航卡片 */
.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.nav-card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.nav-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-card-content {
    flex: 1;
}

.nav-card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.nav-card-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud .tag {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-cloud .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tag-pink {
    background: rgba(255, 118, 117, 0.1);
    color: #ff7675;
    border: 1px solid rgba(255, 118, 117, 0.2);
}

.tag-purple {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.tag-cyan {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

/* 排行榜 */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-list li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.ranking-list li:last-child {
    border-bottom: none;
}

.ranking-list li:hover {
    background: rgba(0,0,0,0.02);
}

.ranking-number {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.ranking-title {
    flex: 1;
    color: var(--text-color);
}

.hot {
    color: #ff6b6b;
    font-size: 14px;
}

/* 广告位 */
.ad-placeholder {
    margin: 40px 0;
}

.ad-space {
    height: 200px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

/* 广告样式 */
.ad-container {
    margin: 0;
}

.ad-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.ad-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ad-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    padding-left: 10px;
}

.ad-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ad-item {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.ad-content {
    padding: 15px;
}

.ad-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.ad-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* 漂浮广告样式 */
.popup-ad {
    position: fixed;
    bottom: 5px;
    left: 5px;
    width: 120px;
    height: 150px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.popup-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.popup-ad-content {
    width: 100%;
    height: 100%;
}

.popup-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* open广告样式 - 居中弹出 */
.open-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.open-ad-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.open-ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
}

.open-ad-body {
    width: 100%;
    height: 100%;
}

.open-ad-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.open-ad-info {
    padding: 25px;
}

.open-ad-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.open-ad-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.open-ad-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.open-ad-button:hover {
    background: var(--primary-dark);
}

/* 响应式设计 - 广告 */
@media (max-width: 992px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .open-ad-content {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-ad {
        width: 80px;
        height: 100px;
        bottom: 5px;
        left: 5px;
    }
    
    .open-ad-content {
        width: 98%;
        max-width: 400px;
    }
    
    .open-ad-image {
        height: 200px;
    }
    
    .open-ad-title {
        font-size: 20px;
    }
}

/* APP推荐样式 */
.app-recommend-section {
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.app-item {
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    position: relative;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.app-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--radius-sm);
}

.app-icon-default {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.app-info {
    text-align: center;
}

.app-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-desc {
    font-size: 10px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.app-meta {
    font-size: 9px;
    color: var(--text-light);
}

.app-rating {
    color: #f5a623;
}

.app-category {
    background: var(--card-bg);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 3px;
}

.app-platform {
    margin-left: 3px;
}


@media (max-width: 768px) {
    .app-grid {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .app-icon-default {
        font-size: 20px;
    }
}

/* 评论框 */
.comment-section {
    margin-top: 40px;
}

.comment-login-prompt {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.comment-login-prompt p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-login:hover {
    background: var(--primary-dark);
}

.comment-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.comment-empty img {
    width: 100px;
    opacity: 0.5;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .website-header {
        flex-direction: column;
    }
    
    .stats-card {
        width: 100%;
    }
    
    .content-columns {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
    }
    
    .website-title {
        font-size: 24px;
    }
    
    .stat-items {
        flex-direction: column;
    }
    
    .website-actions {
        flex-wrap: wrap;
    }
}

.comment-form-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rating-stars {
    display: flex;
    gap: 5px;
    direction: rtl; /* 从右到左显示，方便选择 */
}

.rating-stars input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.rating-stars input[type="radio"]:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffc107;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.comment-username {
    font-weight: bold;
    color: var(--text-color);
}

.comment-date {
    color: var(--text-light);
    font-size: 14px;
}

.comment-rating {
    color: #ffc107;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
}

.comment-disabled {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 16px;
}