/* 全局容器通用 */
.dwn-market-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
/* 标题通用 */
.dwn-platform-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}
.dwn-title-icon {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #c8102e 0%, #990c24 100%);
    border-radius: 2px;
}
.dwn-title-sub {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #c8102e;
}
.dwn-col-title {
    margin: 0 0 20px 0 !important;
    font-size: 20px !important;
}
/* 涨跌颜色通用（保留行情常规：涨红跌绿） */
.dwn-text-up { color: #c8102e; }
.dwn-text-down { color: #2ed573; }
.dwn-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}
.dwn-arrow-up { border-bottom: 10px solid #c8102e; }
.dwn-arrow-down { border-top: 10px solid #2ed573; }
/* 卡片通用 */
.dwn-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #fce8ea;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.05);
    overflow: hidden;
}
.dwn-full-height {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dwn-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #fce8ea;
    flex-shrink: 0;
}
.dwn-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}
.dwn-more {
    font-size: 13px;
    color: #888;
    text-decoration: none;
}
.dwn-more:hover { color: #c8102e; }
.dwn-market-section {
    background-color: #fff5f6;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
/* 保留你原来的动态光效伪元素，修改渐变色调适配红色品牌 */
.dwn-market-section::before {
    content: "";
    position: absolute;
    top: -20%;
    right: 5%;
    width: 40px;
    height: 140%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(200,16,46,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(40deg);
    pointer-events: none;
    z-index: 1;
    animation: dwn-pulse-right 6s infinite ease-in-out;
}
.dwn-market-section::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background:
        linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(200,16,46,0.12) 50%, rgba(255,255,255,0) 100%) no-repeat -35% 0% / 30px 100%,
        linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(200,16,46,0.08) 50%, rgba(255,255,255,0) 100%) no-repeat 85% 0% / 20px 100%;
    background-size: 30px 100%, 20px 100%;
    transform: rotate(40deg);
    pointer-events: none;
    z-index: 1;
    animation: dwn-pulse-left 8s infinite ease-in-out;
}
@keyframes dwn-pulse-right {
    0%, 100% { opacity: 0.4; transform: rotate(40deg) translate(0, 0); }
    50% { opacity: 0.8; transform: rotate(40deg) translate(15px, -15px); }
}
@keyframes dwn-pulse-left {
    0%, 100% { opacity: 0.3; transform: rotate(40deg) translate(0, 0); }
    50% { opacity: 0.7; transform: rotate(40deg) translate(-10px, 10px); }
}
.dwn-price-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 180px;
    padding: 0 35px;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f2 50%, #d6304a 100%);
    background-image:
        linear-gradient(135deg, #ffffff 0%, #fff0f2 50%, #d6304a 100%),
        radial-gradient(circle at 85% right, rgba(200, 16, 46, 0.09) 0%, transparent 70%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.09), 0 2px 6px rgba(150,10,30,0.04);
}
.dwn-price-bar-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dwn-price-bar-right img { height: 120px; width: auto; display: block; }
.dwn-price-bar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
}
.dwn-price-bar-row { display: flex; align-items: center; gap: 10px; }
.dwn-price-label { color: #999; font-size: 14px; }
.dwn-market-price { display: flex; align-items: center; gap: 6px; }
.dwn-price-num { font-size: 36px; font-weight: 700; }
.dwn-price-change { font-size: 14px; font-weight: 600; }
/* ========== 第二屏 行情报价 ========== */
.dwn-quotes-section {
    padding: 20px 0;
    background: #fff5f6;
}
.dwn-quotes-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}
.dwn-quotes-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dwn-quote-card-large {
    position: relative;
    padding: 32px 36px;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f2 100%);
    border: 1px solid #fce8ea;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.06);
    overflow: hidden;
    flex: 1;
}
.dwn-quote-card-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}
.dwn-quote-card-price { display: flex; align-items: center; gap: 10px; }
.dwn-cur-price { font-size: 40px; font-weight: 700; line-height: 1; }
.dwn-price-change { font-size: 18px; font-weight: 600; }
.dwn-quote-card-large img {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    height: 56px;
    width: auto;
    opacity: 0.9;
}
.dwn-quotes-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #fce8ea;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.05);
}
.dwn-quote-data-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.dwn-quote-data-item {
    padding: 16px 20px;
    background: #fff5f6;
    border-radius: 10px;
    text-align: center;
}
.dwn-quote-data-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}
.dwn-quote-data-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.dwn-quote-data-num { font-size: 22px; font-weight: 600; color: #333; }
.dwn-quote-data-unit { font-size: 13px; color: #999; }
/* ========== 第三屏 K线图 ========== */
.dwn-chart-section {
    padding: 50px 0 60px;
    background: #fff;
}
.dwn-chart-container {
    background: #fff;
    border: 1px solid #fce8ea;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.05);
    min-height: 400px;
}
#chart-container { width: 100%; height: 400px; }
/* ========== 第四屏 资讯APP ========== */
.dwn-info-section {
    padding: 50px 0;
    background: #fff5f6;
}
.dwn-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.dwn-info-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dwn-news-cover {
    position: relative;
    flex-shrink: 0;
}
.dwn-news-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.dwn-news-cover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.dwn-news-cover-title p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dwn-news-list {
    list-style: none;
    padding: 12px 24px 20px;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.dwn-news-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #fce8ea;
    font-size: 14px;
}
.dwn-news-list li:last-child { border-bottom: none; }
.dwn-news-cate {
    color: #c8102e;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}
.dwn-news-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.dwn-news-title:hover { color: #c8102e; }
.dwn-news-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}
/* APP模块 */
.dwn-app-banner {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.dwn-app-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.dwn-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    padding: 20px;
    flex: 1;
    align-content: center;
}
.dwn-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.dwn-app-icon {
    display: block;
    margin-bottom: 8px;
}
.dwn-app-icon img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.dwn-app-name {
    display: block;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 500;
}
.dwn-app-down-btn {
    display: block;
    width: 100%;
    padding: 6px 0;
    text-align: center;
    background: linear-gradient(135deg, #c8102e 0%, #990c24 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}
.dwn-app-down-btn:hover {
    background: linear-gradient(135deg, #990c24 0%, #77081b 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(200,16,46,0.3);
}
/* ========== 第五屏 交易策略 ========== */
.dwn-strategy-section {
    padding: 0 0 60px;
    background: #fff5f6;
}
.dwn-strategy-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #fce8ea;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.05);
    padding: 24px;
}
.dwn-strategy-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.dwn-strategy-article {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dwn-strategy-thumb {
    flex-shrink: 0;
    width: 100%;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}
.dwn-strategy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dwn-strategy-thumb:hover img { transform: scale(1.06); }
.dwn-strategy-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dwn-strategy-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.dwn-strategy-content h3 a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dwn-strategy-content h3 a:hover { color: #c8102e; }
.dwn-strategy-content p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dwn-strategy-date { font-size: 12px; color: #999; }
/* ========== 平台推荐板块（汇凯金业按钮红色替换） ========== */
.dwn-platform-section {
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
}
.dwn-platform-section .dwn-platform-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 30px;
    color: #222;
    margin: 0 auto 50px;
}
.dwn-platform-section .dwn-platform-title .dwn-title-icon {
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: #c8102e;
    border-radius: 2px;
}
.dwn-platform-section .dwn-platform-title .dwn-title-sub {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}
.dwn-platform-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.12);
    padding: 48px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.dwn-platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200, 16, 46, 0.15);
}
.dwn-platform-content {
    display: flex;
    gap: 32px;
    align-items: center;
}
.dwn-platform-left {
    flex: 1;
}
.dwn-platform-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f7f9fc;
}
.dwn-platform-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.dwn-platform-info h3 {
    font-size: 24px;
    color: #111;
    margin: 0 0 14px;
}
.dwn-platform-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 28px;
}
.dwn-platform-image {
    width: 600px;
    flex-shrink: 0;
}
.dwn-platform-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(200, 16, 46, 0.14);
}
.dwn-platform-btns {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.dwn-platform-btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 48px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s;
}
.dwn-btn-primary {
    background: #c8102e;
    color: #fff;
}
.dwn-btn-gold {
    background: #c49438;
    color: #fff;
}
.dwn-btn-down {
    background: #222;
    color: #fff;
}
.dwn-platform-btns a:hover {
    transform: translateY(-2px);
}
.dwn-btn-primary:hover {
    background: #990c24;
}
.dwn-btn-gold:hover {
    background: #a87c2e;
}
.dwn-btn-down:hover {
    background: #000;
}
/* ========== 响应式全局 ========== */
@media (max-width: 1200px) {
    .dwn-strategy-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .dwn-market-container { padding: 0 24px; }
    .dwn-quotes-main { grid-template-columns: 1fr; }
    .dwn-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .dwn-platform-content {
        flex-direction: column;
    }
    .dwn-platform-image {
        width: 80%;
        margin-top: 30px;
    }
    .dwn-platform-btns {
        justify-content: center;
    }
}
@media (max-width: 640px) {
    .dwn-market-section { padding: 40px 0; }
    .dwn-market-container { padding: 0 16px; }
    .dwn-price-bar { padding: 18px 20px; height: auto; flex-direction: column; gap:16px; text-align:center; }
    .dwn-price-bar-title { font-size: 15px; }
    .dwn-price-num { font-size: 22px; }
    .dwn-platform-section {
        padding: 50px 0;
    }
    .dwn-platform-card {
        padding: 32px 24px;
    }
    .dwn-platform-section .dwn-platform-title {
        font-size: 24px;
    }
    .dwn-platform-btns {
        flex-wrap: wrap;
    }
    .dwn-platform-btns a {
        width: 100%;
    }
    .dwn-platform-image {
        width: 100%;
    }
    .dwn-quote-card-large { padding: 24px 20px; }
    .dwn-cur-price { font-size: 30px; }
    .dwn-quote-card-large img { height: 40px; right: 20px; }
    .dwn-quotes-right { padding: 16px; }
    .dwn-quote-data-item { padding: 12px 10px; }
    .dwn-quote-data-num { font-size: 18px; }
    .dwn-news-cover img { height: 150px; }
    .dwn-app-grid { grid-template-columns: repeat(4, 1fr); }
    .dwn-app-icon img { width: 44px; height: 44px; }
    .dwn-app-name { font-size: 12px; }
    .dwn-strategy-wrap { grid-template-columns: 1fr; }
    .dwn-strategy-thumb { height: 160px; }
}
@media (max-width: 640px) {
    .dwn-price-bar { padding: 14px 18px; }
    .dwn-price-bar-title { font-size: 15px; }
    .dwn-price-num { font-size: 18px; }
    .dwn-price-bar-right img { height: 120px; }
}
