/* Detail pages shared styles (site/detail + article/detail) */
.site-container,
.article-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.site-main,
.article-main {
    width: calc(100% - 320px);
    float: left;
}

.site-side,
.article-side {
    width: 300px;
    float: right;
    margin-left: 20px;
}

.site-row,
.article-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    width: 100%;
}

.site-col,
.article-col {
    width: 50%;
    padding: 0 8px;
    box-sizing: border-box;
}

.view-list a {
    display: flex;
    align-items: center;
    padding: 6px;
    line-height: 25px;
    font-size: 14px;
    color: #666;
    border-radius: 25px;
}

.view-list a:hover {
    background: #eee;
}

.view-list a .rank {
    flex: none;
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    text-align: center;
    border-radius: 50%;
    background: rgba(124, 124, 124, 0.3);
}

.view-list a .icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.view-list a .name {
    flex: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.view-list a .view {
    margin-left: auto;
    color: #ff7f00;
}

.oz-timeline {
    position: relative;
    padding: 0;
    margin: 0;
}

.oz-timeline-item {
    position: relative;
    display: flex;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.oz-timeline-item:last-child {
    border-bottom: none;
}

.oz-timeline-time {
    flex: none;
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

.oz-timeline-main {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.oz-timeline-main .name {
    font-size: 14px;
    color: #666;
}

.oz-timeline-main .view {
    float: right;
    font-size: 12px;
    color: #999;
}

/* Site detail info grid */
.info-card-box {
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.info-card-box .card-body {
    padding: 15px;
}

.info-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.info-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.info-grid-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-text-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    z-index: 2;
    position: relative;
}

.info-effect-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 1;
}

.info-grid-item:hover .info-effect-shimmer {
    animation: info-anim-shine 0.75s;
}

@keyframes info-anim-shine {
    100% { left: 125%; }
}

/* 1 Yuan ad widget + self-service ads */
.one-yuan-ad-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 15px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.one-yuan-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.one-yuan-ad-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 0;
    position: relative;
    padding-bottom: 15px;
}

.one-yuan-ad-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

.one-yuan-ad-title a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
}

.one-yuan-ad-title a:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.one-yuan-ad-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.one-yuan-ad-item {
    position: relative;
    flex: 0 0 auto;
    width: calc((100% - 108px) / 10);
    min-width: 90px;
    max-width: 112px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--ad-color) 0%, var(--ad-color) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.one-yuan-ad-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.one-yuan-ad-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.one-yuan-ad-item:hover::before {
    opacity: 1;
}

.one-yuan-ad-item.first-ad {
    animation: text-color-blink 1.5s ease-in-out infinite;
}

@keyframes text-color-blink {
    0%, 100% { color: #ff0000; }
    50% { color: #ffffff; }
}

.one-yuan-ad-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) !important;
    color: #757575 !important;
    cursor: pointer;
    border: 2px dashed #999;
}

.one-yuan-ad-placeholder:hover {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%) !important;
    border-color: #666;
}

.ad-divider {
    text-align: center;
    margin: 30px 0 25px;
    position: relative;
}

.ad-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd 20%, #ddd 80%, transparent);
}

.ad-divider-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
}

.text-ads-list {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 20px;
}

.text-ad-item {
    position: relative;
    flex: 0 0 auto;
    width: calc((100% - 48px) / 5);
    min-width: 180px;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--ad-theme-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.text-ad-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--ad-theme-color), var(--ad-theme-color-dark));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.text-ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--ad-theme-rgb), 0.3);
    background: var(--ad-theme-color);
    color: #ffffff;
}

.text-ad-item:hover::before {
    opacity: 1;
}

.image-ads-section {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.small-ads-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.small-ad-item {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.small-ad-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.small-ad-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.small-ad-item:hover img {
    transform: scale(1.05);
}

.big-ad-item {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.big-ad-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.big-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.big-ad-item:hover img {
    transform: scale(1.03);
}

/* Article detail: resource / disclaimer / related / sidebar cards */
.resource-box {
    border: 2px dashed #d96ff0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    font-family: "Microsoft YaHei", sans-serif;
}

.resource-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.resource-header .title {
    font-size: 18px;
    font-weight: bold;
    color: #d96ff0;
    margin-right: 15px;
    white-space: nowrap;
}

.resource-header .line {
    flex-grow: 1;
    border-bottom: 1px dashed #d96ff0;
    opacity: 0.5;
}

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

.price-tag {
    font-size: 16px;
    color: #666;
}

.buy-btn-gradient {
    background: linear-gradient(90deg, #e086ff 0%, #d96ff0 100%);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.buy-btn-gradient:hover {
    opacity: 0.9;
    color: #fff;
}

.resource-footer {
    margin-top: 15px;
    color: #ff7f00;
    font-size: 14px;
}

.article-disclaimer-box {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.disclaimer-header {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.disclaimer-badge {
    display: inline-block;
    padding: 8px 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #d63384;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(214, 51, 132, 0.2);
}

.disclaimer-body {
    padding: 20px 25px;
    background: #fff;
}

.disclaimer-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.disclaimer-body a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #3498db;
    transition: all 0.3s;
}

.disclaimer-body a:hover {
    color: #2980b9;
    border-bottom-style: solid;
}

.related-articles-grid {
    display: flex;
    flex-wrap: wrap;
}

.related-article-item {
    width: 50%;
    box-sizing: border-box;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #444;
    border-bottom: 1px dashed #eee;
    transition: all 0.2s ease;
}

.related-article-item:nth-child(odd) {
    border-right: 1px dashed #eee;
}

.related-article-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.related-article-item:hover {
    background: linear-gradient(90deg, rgba(129, 212, 250, 0.1) 0%, rgba(206, 147, 216, 0.1) 100%);
    color: #ce93d8;
}

.related-article-item i {
    margin-right: 8px;
    color: #81d4fa;
    font-size: 12px;
}

.related-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.hot-article-list {
    display: flex;
    flex-direction: column;
}

.hot-article-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    transition: all 0.2s;
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-article-item:hover {
    background: #f8f9fa;
}

.hot-article-item:hover .hot-title {
    color: #ce93d8;
}

.hot-rank {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
    background: #aaa;
}

.hot-rank-1 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
.hot-rank-2 { background: linear-gradient(135deg, #ffa502 0%, #ff7f00 100%); }
.hot-rank-3 { background: linear-gradient(135deg, #ffd700 0%, #f7b731 100%); }

.hot-title {
    flex: 1;
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-views {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
    margin-left: 8px;
}

.hot-views i {
    margin-right: 3px;
}

.random-article-list {
    display: flex;
    flex-direction: column;
}

.random-article-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    transition: all 0.2s;
}

.random-article-item:last-child {
    border-bottom: none;
}

.random-article-item:hover {
    background: #f8f9fa;
}

.random-article-item:hover .random-title {
    color: #81d4fa;
}

.random-cover {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.random-title {
    flex: 1;
    font-size: 13px;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .site-main,
    .site-side,
    .article-main,
    .article-side {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    .site-col,
    .article-col {
        width: 100%;
    }
    .one-yuan-ad-list {
        flex-wrap: wrap;
    }
    .one-yuan-ad-item {
        width: calc((100% - 48px) / 5);
        min-width: 120px;
    }
    .text-ad-item {
        width: calc((100% - 24px) / 3);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .info-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .info-grid-item {
        padding: 10px 8px;
    }
    .info-text-label {
        font-size: 13px;
    }
    .disclaimer-body {
        padding: 15px;
    }
    .disclaimer-body p {
        font-size: 12px;
        line-height: 1.8;
    }
    .disclaimer-badge {
        font-size: 14px;
        padding: 6px 20px;
    }
    .related-article-item {
        width: 100%;
        border-right: none !important;
    }
    .one-yuan-ad-container {
        padding: 20px 10px;
        border-radius: 15px;
    }
    .one-yuan-ad-title {
        font-size: 18px;
    }
    .one-yuan-ad-list {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 5px;
    }
    .one-yuan-ad-item {
        width: calc((100% - 10px) / 2);
        min-width: 140px;
        font-size: 12px;
        height: 44px;
    }
    .text-ads-list {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 5px 15px;
    }
    .text-ad-item {
        width: calc((100% - 10px) / 2);
        min-width: unset;
        height: 44px;
        font-size: 13px;
    }
    .small-ads-row {
        flex-direction: column;
        gap: 10px;
    }
    .small-ad-item img {
        height: auto;
        min-height: 60px;
        object-fit: contain;
    }
    .big-ad-item img {
        height: auto;
        min-height: 80px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .one-yuan-ad-container {
        padding: 15px 8px;
    }
    .one-yuan-ad-item {
        font-size: 11px;
        padding: 0 8px;
        height: 40px;
    }
    .text-ad-item {
        font-size: 12px;
        padding: 0 14px;
        height: 42px;
    }
}
