/* ========== 全局优化 ========== */
:root {
    --primary-color: #1890ff;
    --primary-gradient: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    --secondary-color: #36cfc9;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e8e8e8;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

/* ========== 头部导航优化 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.header .logo {
    flex-shrink: 0;
}

.header .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header .nav-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
}

.header .nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.header .nav ul li {
    position: relative;
}

.header .nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: block;
    transition: color 0.3s;
}

.header .nav a:hover {
    color: var(--primary-color);
}

.header .nav ul li {
    position: relative;
}

.header .nav ul li dl {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    min-width: 140px;
    margin-top: 8px;
    z-index: 100;
}

.header .nav ul li:hover dl {
    display: block;
}

.header .nav ul li dl dd {
    margin: 0;
    list-style: none;
}

.header .nav ul li dl dd a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    color: var(--text-dark);
    transition: all 0.2s;
}

.header .nav ul li dl dd a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 24px;
}

.header .btns ul {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .btns li {
    margin: 0;
}

.header .btns a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.header .btns .reg a {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
}

.header .btns .reg a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.header .gh {
    display: none;
}

/* ========== Banner区域优化 ========== */
.hbanner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 100px 0;
    overflow: hidden;
}

.hbanner .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hbanner-txt {
    flex: 1;
    max-width: 600px;
}

.hbanner-txt h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hbanner-txt h2 br {
    display: block;
}

.hbanner-txt h2 font {
    display: block;
    font-size: 26px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 15px;
}

.hbanner-txt p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hbanner-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3);
    transition: all 0.3s;
}

.hbanner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.4);
}

.hbanner-img {
    flex: 1;
    text-align: center;
}

.hbanner-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========== 标题样式优化 ========== */
.g-hd {
    text-align: center;
    margin-bottom: 60px;
}

.g-hd h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.g-hd p {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ========== 产品展示区优化 ========== */
.pro-pay, .pro-qr {
    padding: 80px 0;
    background: #fff;
}

.pro-qr {
    background: var(--bg-light);
}

.pro-pay .wrapper, .pro-qr .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pro-bd {
    display: flex;
    align-items: center;
    gap: 80px;
}

.pro-pay-l, .pro-qr-r {
    flex: 1;
}

.pro-pay-l img, .pro-qr-r img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.pro-pay-r, .pro-qr-l {
    flex: 1;
}

.pro-pay-r h2, .pro-qr-l h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.g-describe {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.pro-pay-r ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
}

.pro-pay-r ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.pro-pay-r ul li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pro-pay-r ul li img {
    width: 48px;
    height: 48px;
}

.pro-pay-r ul li span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.g-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.g-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== 帮手区域优化 ========== */
.hhelp {
    padding: 80px 0;
    background: var(--bg-light);
}

.hhelp .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hhelp-bd ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    list-style: none;
}

.hhelp-bd ul li {
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.hhelp-bd ul li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.hhelp-bd ul li .img {
    margin-bottom: 20px;
}

.hhelp-bd ul li .img img {
    width: 64px;
    height: 64px;
}

.hhelp-bd ul li .txt h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.hhelp-bd ul li .txt h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========== 支付方式区域优化 ========== */
.pay {
    padding: 80px 0;
    background: #fff;
}

.pay .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pay-txt {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 15px;
}

.pay-bd ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    list-style: none;
    margin-bottom: 50px;
}

.pay-bd ul li {
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.pay-bd ul li:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pay-bd ul li .img {
    margin-bottom: 15px;
}

.pay-bd ul li .img img {
    width: 80px;
    height: 80px;
}

.pay-bd ul li .txt p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.pay-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 60px;
    font-size: 18px;
}

/* ========== CTA区域优化 ========== */
.hstart {
    background: var(--primary-gradient);
    padding: 60px 0;
}

.hstart .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hstart-txt h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.hstart-txt p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.hstart-btn .g-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 16px 48px;
    font-size: 18px;
}

.hstart-btn .g-btn:hover {
    background: #f0f9ff;
}

/* ========== 底部版权优化 ========== */
.copyright {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0 20px;
}

.copyright .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.8;
}

.copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: var(--primary-color);
}

.github-badge {
    display: inline-block;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    line-height: 15px;
    margin: 5px 5px;
    overflow: hidden;
}

.github-badge .badge-subject {
    display: inline-block;
    background-color: #555;
    padding: 5px 8px;
}

.github-badge .badge-value {
    display: inline-block;
    background-color: #007ec6;
    padding: 5px 8px;
}

.github-badge .bg-blue {
    background-color: #007ec6;
}

.github-badge .bg-brightgreen {
    background-color: #4c1;
}

/* ========== 侧边栏优化 ========== */
.sidebar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ========== 响应式优化 ========== */
@media (max-width: 992px) {
    .header .nav ul {
        gap: 20px;
    }
    
    .header .nav a {
        font-size: 14px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-btn i {
    font-size: 16px;
}

/* 移动端下拉菜单 */
.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 15px;
    right: auto;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: var(--radius-md);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
    z-index: 1000;
}

.mobile-nav-dropdown.active {
    display: block;
}

.mobile-nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-dropdown ul li {
    margin: 0;
}

.mobile-nav-dropdown ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.mobile-nav-dropdown ul li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 24px;
}

@media (max-width: 768px) {
    .header .wrapper {
        min-height: auto;
        padding: 12px 15px;
        position: relative;
    }
    
    .header .logo img {
        height: 32px;
    }
    
    /* 隐藏桌面导航 */
    .header .nav {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }
    
    .header .nav-wrap {
        gap: 15px;
    }
    
    /* 只显示第一个按钮（商户登录） */
    .header .btns ul li:last-child {
        display: none;
    }
    
    .header .btns a {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .header .gh {
        display: none;
    }
}

@media (max-width: 576px) {
    .header .wrapper {
        padding: 10px 12px;
    }
    
    .header .logo img {
        height: 28px;
    }
    
    .mobile-menu-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .header .btns a {
        padding: 7px 16px;
        font-size: 13px;
    }
    
    .mobile-nav-dropdown {
        left: 12px;
        min-width: 180px;
    }
}
    
    .hbanner {
        padding: 40px 0;
    }
    
    .hbanner .wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .hbanner-txt h2 {
        font-size: 28px;
    }
    
    .hbanner-txt h2 font {
        font-size: 18px;
    }
    
    .pro-bd {
        flex-direction: column;
        gap: 40px;
    }
    
    .pro-qr .pro-bd {
        flex-direction: column-reverse;
    }
    
    .pro-pay-r ul {
        grid-template-columns: 1fr;
    }
    
    .g-hd h2 {
        font-size: 28px;
    }
    
    .hhelp-bd ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .pay-bd ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hstart .wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .hstart-txt h2 {
        font-size: 24px;
    }
    
    .sidebar {
        right: 10px;
        bottom: 60px;
    }
    
    .sidebar ul li a {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hbanner-txt h2 {
        font-size: 24px;
    }
    
    .g-hd h2 {
        font-size: 24px;
    }
    
    .pay-bd ul {
        grid-template-columns: 1fr;
    }
    
    .hhelp-bd ul {
        grid-template-columns: 1fr;
    }
}
