/* /skin/css/css.css */
/* 新盛游戏代理加盟 - 全球黑黄配色，反主流布局 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --yellow: #f5b81b;
    --yellow-bright: #ffc107;
    --yellow-dark: #c9920b;
    --white: #f0f0f0;
    --gray: #9a9a9a;
    --border-color: #2e2e2e;
    --font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--yellow);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--yellow-bright);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* 头部 */
.header {
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
}
.header__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 36px;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 2rem;
}
.nav__list a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.25rem 0;
}
.nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--yellow);
    transition: width 0.25s;
}
.nav__list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--yellow);
    transition: transform 0.25s, opacity 0.25s;
}

/* 主内容区块通用间距 */
section {
    padding: 3.5rem 1.25rem;
}

/* 标题样式 - 非居中对齐，带偏移 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--yellow);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--yellow);
}
.section-title--left {
    text-align: left;
    margin-left: 5%;
}
.section-title--right {
    text-align: right;
    margin-right: 5%;
    margin-left: auto;
    display: table;
}
.section-title--skew {
    transform: skewX(-6deg);
    margin-left: 8%;
}

/* BANNER 网格布局 */
.banner {
    padding: 1rem 0.5rem 2rem;
}
.banner__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 0.5rem;
    max-width: 1300px;
    margin: 0 auto;
}
.banner__item {
    overflow: hidden;
    position: relative;
    background: #1c1c1c;
}
.banner__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.banner__item:hover img {
    transform: scale(1.04);
}
.banner__item--wide {
    grid-column: span 1;
    grid-row: span 2;
}
.banner__item--tall {
    grid-row: span 2;
}
.banner__item--small {
    grid-row: span 1;
}
.banner__item--wide-bottom {
    grid-column: span 2;
}
.banner__cta {
    margin-top: 2rem;
    text-align: left;
    margin-left: 5%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
}
.banner__text {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}
.banner__btn {
    background: var(--yellow);
    color: var(--black);
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transition: background 0.2s, transform 0.2s;
}
.banner__btn:hover {
    background: var(--yellow-bright);
    transform: translateY(-2px);
}

/* 优势卡片 错位偏移 */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.adv-card {
    background: var(--dark);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    transition: border-color 0.25s;
    position: relative;
}
.adv-card:hover {
    border-color: var(--yellow);
}
.adv-card--offset-left {
    margin-top: 1.5rem;
}
.adv-card--offset-right {
    margin-top: -1.5rem;
}
.adv-card__icon {
    width: 48px;
    height: 48px;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}
.adv-card__icon svg {
    width: 100%;
    height: 100%;
}
.adv-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--yellow);
}
.adv-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 广告墙 - 不规则网格 */
.ad-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 1300px;
    margin: 0 auto;
}
.ad-wall__item {
    overflow: hidden;
    background: #1c1c1c;
    aspect-ratio: 4/3;
    transition: transform 0.25s;
}
.ad-wall__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-wall__item:nth-child(odd) {
    transform: translateY(5px);
}
.ad-wall__item:nth-child(even) {
    transform: translateY(-5px);
}
.ad-wall__item:hover {
    transform: scale(1.02) translateY(0);
    z-index: 2;
}

/* 文章区 参差错落 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}
.article-card {
    background: var(--dark);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.2s;
}
.article-card:hover {
    border-color: var(--yellow-dark);
}
.article-card--featured {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .article-card--featured {
        flex-direction: row;
    }
    .article-card--featured img {
        width: 50%;
        object-fit: cover;
    }
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card__body {
    padding: 1.5rem;
}
.article-card__body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--yellow);
}
.article-card__body p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 联系区块 */
.contact__grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}
.contact__info {
    flex: 1 1 280px;
}
.contact__line {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    word-break: break-all;
}
.contact__line a {
    font-weight: 600;
}
.contact__action {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.btn-register, .btn-download {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.05rem;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    transition: background 0.2s, transform 0.2s;
}
.btn-register {
    background: var(--yellow);
    color: var(--black);
}
.btn-register:hover {
    background: var(--yellow-bright);
    transform: translateX(4px);
}
.btn-download {
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
}
.btn-download:hover {
    background: var(--yellow);
    color: var(--black);
}

/* 页脚 */
.footer {
    background: #0f0f0f;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray);
    font-size: 0.85rem;
}
.footer img {
    margin: 0 auto 0.5rem;
}
.footer__note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .banner__grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }
    .banner__item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }
    .banner__item--tall {
        grid-row: span 1;
    }
    .banner__cta {
        margin-left: 2%;
        padding-left: 2%;
    }
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        display: none;
    }
    .nav.nav--open {
        display: flex;
    }
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.nav--open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.nav--open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.nav--open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .article-card--featured {
        grid-column: span 1;
        flex-direction: column;
    }
    .adv-card--offset-left,
    .adv-card--offset-right {
        margin-top: 0;
    }
}