/* Custom Styles for Gold Trading Investment Platform */

/* Global Styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* Smooth Scroll Offset for Fixed Header */
section {
    scroll-margin-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f59e0b 0%, #9333ea 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d97706 0%, #7e22ce 100%);
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-md {
        backdrop-filter: blur(12px);
    }

    .backdrop-blur-sm {
        backdrop-filter: blur(8px);
    }
}

/* Custom Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #f59e0b 0%, #9333ea 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #9333ea;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #9333ea;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* Chart Container Responsive */
@media (max-width: 768px) {
    #goldChart {
        height: 350px !important;
    }
}

/* Print Styles */
@media print {
    header,
    footer {
        display: none !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000;
    }

    .text-gray-300 {
        color: #fff;
    }
}

/* Custom Select Dropdown */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239333ea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Custom Checkbox Styles */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9333ea;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: #9333ea;
}

input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ThinkPHP Pagination Tailwind Override */
.pagination { display: flex; justify-content: center; gap: 0.25rem; flex-wrap: wrap; }
.pagination li { display: inline-block; }
.pagination li a, .pagination li span {
    display: inline-block; padding: 0.5rem 1rem; border-radius: 0.5rem;
    font-size: 0.875rem; transition: all 0.2s;
}
.pagination li a { background: #f3f4f6; color: #374151; }
.pagination li a:hover { background: #9333ea; color: #fff; }
.pagination li.active span { background: linear-gradient(135deg, #9333ea 0%, #f59e0b 100%); color: #fff; }
.pagination li.disabled span { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* ============================================================
   zhyjll-style 复刻样式（Platforms 榜单 / 猜您喜欢 / hero 滚动指引）
   删除此区块即可整体移除该复刻样式
   ============================================================ */
.full-width-bg, .comm_itembox, .scroll-indicator {
    --zhy-primary-light: #8bb5f4;
    --zhy-primary: #2250b6;
    --zhy-primary-soft: #eef4ff;
    --zhy-shadow-md: 0 12px 28px -8px rgba(34, 80, 182, 0.12);
    --zhy-card-radius: 28px;
}

/* ---------- 通栏背景（100vw 负边距打破容器限制） ---------- */
.full-width-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 32px 0;
}
.full-width-bg .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 榜单卡片网格 ---------- */
.gold_market_wrap_enter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    scroll-margin-top: 80px;
}
.gold_enter_item {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 22px 24px;
    box-shadow: var(--zhy-shadow-md);
    transition: all 0.25s;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    position: relative;
}
.gold_enter_item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(34,80,182,0.18);
}
.gold_enter_item.top3 {
    border: 2px solid rgba(255, 255, 255, 0.94);
}
.top3-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #f5af19, #f9d423);
    color: #1e2f4e;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
}
.gold_enter_content {
    display: flex;
    gap: 18px;
    flex: 1;
}
.gold_enter_icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.8);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.gold_enter_icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gold_enter_info { flex: 1; }
.gold_enter_name {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    color: #1e2f4e;
}
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 40px;
    font-size: 0.7rem;
    margin: 4px 0;
}
.star-rating i { color: #f5b042; font-size: 0.7rem; margin-right: 2px; }
.star-rating span { font-weight: 600; margin-left: 4px; color: #1e2f4e; }
.rating-bar {
    margin: 8px 0;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}
.rating-fill {
    background: linear-gradient(90deg, #c084fc, #6b21a8);
    width: 0%;
    height: 100%;
    border-radius: 6px;
}
.score_mini {
    background: #f3e8ff;
    color: #6b21a8;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
}
.size_tag {
    background: #f1f5f9;
    color: #4b6b8f;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 30px;
}
.meta_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.reg_badge, .advantage_mini {
    background: rgba(241,245,249,0.8);
    color: #2d3a4b;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
}
.reg_badge { background: #eef4ff; color: var(--zhy-primary); }
.gold_enter_desc {
    color: #475569;
    font-size: 0.85rem;
    margin: 8px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gold_enter_link {
    margin-top: auto;
    display: flex;
    gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 18px;
}
.btn-app-wrapper, .btn-reg { flex: 1 1 0%; min-width: 0; }
.btn-app, .btn-reg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.btn-app {
    background: linear-gradient(135deg, #581c87, #6b21a8);
    color: white;
    border: none;
}
.btn-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(88,28,135,0.3);
    color: white;
}
.btn-reg {
    border: 1px solid #cbd5e1;
    color: #2c3e66;
    background: rgba(255,255,255,0.9);
}
.btn-reg:hover {
    border-color: var(--zhy-primary);
    background: #eef4ff;
    color: var(--zhy-primary);
    transform: translateY(-2px);
}

/* ---------- 猜您喜欢（玻璃卡片容器 + 三列网格） ---------- */
.comm_itembox {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--zhy-card-radius);
    box-shadow: var(--zhy-shadow-md);
    overflow: hidden;
    scroll-margin-top: 80px;
}
.syDeReTitle {
    padding: 20px 28px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.syDeReTitle h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e2f4e;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.syDeReTitle h2 em { color: #6b21a8; font-style: normal; }
.syDeReTitle h2 i { color: var(--zhy-primary); font-size: 1.4rem; }
.syDeReTitle h2 .zhy-heart { width: 1.4rem; height: 1.4rem; color: #6b21a8; flex-shrink: 0; }
.con_boxinfo { padding: 24px 28px; width: 100%; }
.guess-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    scroll-margin-top: 80px;
}
.guess-list li {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #edeff2;
}
.guess-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
    border-color: #e2e6ec;
    background: #fefefe;
}
.guess-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.guess-left .img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaecf0;
}
.guess-left .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s;
}
.guess-left .img:hover img { transform: scale(1.02); }
.guess-info { flex: 1; min-width: 0; }
.guess-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2f4e;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.guess-size {
    font-size: 0.7rem;
    color: #5b6e8c;
    background: #f2f4f8;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 40px;
    margin-top: 6px;
    letter-spacing: 0.3px;
}
.guess-size i { font-size: 0.7rem; color: #8a99b0; }
.guess-btn {
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e66;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid #e2e6ed;
    background-color: #fafbfd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-left: 12px;
    flex-shrink: 0;
}
.guess-btn i { font-size: 0.7rem; transition: transform 0.2s; }
.guess-btn:hover {
    background-color: #f5a623;
    border-color: #f5a623;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -8px rgba(245, 166, 35, 0.3);
}
.guess-btn:hover i { transform: translateX(3px); color: white; }

/* ---------- hero 滚动指引动效 ---------- */
.scroll-indicator {
    margin-top: 40px;
    text-align: center;
    cursor: pointer;
    animation: zhy-bounce 2s infinite;
}
.scroll-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f5b042;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.scroll-arrow {
    display: inline-block;
    color: #f5b042;
    font-size: 1.4rem;
    text-decoration: none;
}
.scroll-arrow i { display: block; margin: -6px 0; }
.scroll-arrow i:first-child { animation: zhy-arrowMove 1.2s infinite; }
.scroll-arrow i:last-child { animation: zhy-arrowMove 1.2s infinite 0.2s; }
@keyframes zhy-arrowMove {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}
@keyframes zhy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .guess-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .gold_market_wrap_enter { grid-template-columns: 1fr; gap: 20px; }
    .gold_enter_name { font-size: 1.15rem; }
    .scroll-indicator { margin-top: 30px; }
    .scroll-text { font-size: 0.8rem; }
    .scroll-arrow { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .syDeReTitle h2 { font-size: 1.5rem; }
    .con_boxinfo { padding: 20px 16px; }
}
@media (max-width: 640px) {
    .guess-list { grid-template-columns: 1fr; gap: 16px; }
    .guess-list li { padding: 14px 16px; }
    .guess-left .img { width: 48px; height: 48px; border-radius: 16px; }
    .guess-name { font-size: 0.95rem; white-space: normal; word-break: break-word; }
    /* 卡片改为:图标在左,名称/星级在其右;评分条、标签、简介回到卡片全宽 */
    .gold_enter_item { padding: 18px 16px; }
    .gold_enter_content {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 12px;
        align-items: center;
    }
    .gold_enter_icon { width: 56px; height: 56px; border-radius: 16px; grid-row: 1 / span 2; }
    .gold_enter_info { display: contents; }
    .gold_enter_name { grid-column: 2; font-size: 1.05rem; margin-bottom: 0; }
    .star-rating { grid-column: 2; justify-self: start; margin: 2px 0 0; }
    .rating-bar { grid-column: 1 / -1; margin: 12px 0 6px; }
    .meta_tags { grid-column: 1 / -1; }
    .gold_enter_desc { grid-column: 1 / -1; font-size: 0.8rem; margin: 6px 0 0; }
    .gold_enter_link { flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; }
    .btn-app, .btn-reg { padding: 11px 0; }
}
/* ===== zhyjll-style 复刻样式结束 ===== */
/* 100vw 通栏包含滚动条宽度，隐藏由此产生的横向溢出 */
body { overflow-x: hidden; }
