:root{
    --main-color:#ff4d6d;
    --bg-dark:#0a0c1a;
    --bg-card:#11131f;
    --text-color:#eef2ff;
    --text-gray:#cdd6f4;
    --transition-speed:0.2s;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui,"Microsoft YaHei",SimSun,"PingFang SC",sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.5;
    scroll-behavior: smooth;
}
/* 禁用动画适配 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* 滚动条兼容 Firefox */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1e1f2c; }
::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 10px; }
@supports (scrollbar-width: thin){
    html {scrollbar-width: thin; scrollbar-color: var(--main-color) #1e1f2c;}
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.navbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 10; background: var(--bg-dark); }
.logo-area { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.square-logo { width: 60px; height: 60px; background: #1e2132; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all var(--transition-speed) ease; border: 1px solid rgba(255,77,109,0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.square-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #FFD166, #FF4D6D); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.5px; }
.logo-text span { color: #fff; background: none; -webkit-background-clip: unset; background-clip: unset; font-weight: 500; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: color var(--transition-speed); font-size: 1rem; }
.nav-links a:hover { color: var(--main-color); }
.menu-icon { display: none; cursor: pointer; }
section { padding: 70px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title:after { content: ''; position: absolute; bottom: -12px; left: 0; width: 60px; height: 4px; background: var(--main-color); border-radius: 4px; }
.hero-section { margin: 20px 0 20px; padding: 0 24px; }
.hero-single { max-width: 1800px; margin: 0 auto; border-radius: 44px; overflow: hidden; position: relative; background: #05070f; box-shadow: 0 30px 50px -15px rgba(0,0,0,0.8); transition: transform var(--transition-speed) ease; }
/* PC端开启hover缩放，移动端关闭缩放防止横向滚动条 */
@media(min-width:821px){
    .hero-single:hover { transform: scale(1.01); }
}
.hero-image { width: 100%; display: block; object-fit: cover; transition: all 0.4s; max-height: 880px; min-height: 580px; object-position: center 30%; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; text-shadow: 0 5px 20px rgba(0,0,0,0.7); padding: 2rem; }
.hero-overlay h1 { font-size: 4.2rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; max-width: 90%; }
.hero-overlay h1 span { background: linear-gradient(135deg, #FFD166, #FF4D6D); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-overlay p { font-size: 1.4rem; max-width: 750px; margin-bottom: 35px; opacity: 0.95; font-weight: 400; line-height: 1.5; }
.hero-buttons { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.hero-btn { border: none; padding: 16px 48px; border-radius: 60px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; transition: all var(--transition-speed) ease; font-size: 1.1rem; backdrop-filter: blur(4px); letter-spacing: 0.5px; }
.btn-register { background: linear-gradient(135deg, #ff4d6d, #ff1e4d); color: white; box-shadow: 0 10px 25px rgba(255, 77, 109, 0.5); border: 1px solid rgba(255,255,255,0.2); }
.btn-register:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(255, 77, 109, 0.7); background: linear-gradient(135deg, #ff3b5e, #ff0033); }
.btn-wechat { background: rgba(25, 30, 55, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.35); color: #f0f3ff; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.btn-wechat:hover { background: rgba(40, 45, 80, 0.9); border-color: var(--main-color); transform: translateY(-4px); color: white; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); z-index: 1000; justify-content: center; align-items: center; animation: fadeIn 0.2s ease; }
.modal-content { background: linear-gradient(145deg, #141a30, #0a0e1c); border-radius: 56px; padding: 35px 40px; text-align: center; max-width: 420px; width: 88%; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 35px 60px rgba(0,0,0,0.8); }
.modal-content h3 { font-size: 32px; margin-bottom: 16px; background: linear-gradient(135deg, #fff, #ffb3c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wechat-id-box { background: #00000055; padding: 16px; border-radius: 80px; font-size: 28px; font-weight: 700; letter-spacing: 2px; color: #ffda88; margin: 25px 0; border: 1px solid rgba(255,200,100,0.4); font-family: monospace; }
.copy-btn { background: var(--main-color); border: none; padding: 12px 32px; border-radius: 50px; color: white; font-weight: bold; cursor: pointer; font-size: 1rem; transition: var(--transition-speed); }
.copy-btn:hover { background: #e63e5e; transform: scale(0.97); }
.close-modal { margin-top: 22px; color: #9aa4bf; cursor: pointer; font-size: 14px; transition: var(--transition-speed); }
.close-modal:hover { color: #ff8c9e; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hot-search-section { background: rgba(15, 17, 35, 0.6); border-radius: 48px; padding: 40px 30px; margin: 30px 0 20px; text-align: center; }
.hot-search-title { font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.keyword-item { background: #1e2132; padding: 8px 20px; border-radius: 60px; font-size: 0.9rem; transition: all var(--transition-speed); text-decoration: none; color: var(--text-gray); border: 1px solid #2a2e45; display: inline-block; cursor: pointer; }
.keyword-item:hover { background: var(--main-color); color: white; transform: translateY(-2px); }
.partners-section { background-color:#0f101c; border-radius: 48px; padding:60px 0; margin: 20px 0; text-align: center; }
.partners-grid { display:flex; justify-content: space-around; align-items:center; gap:1rem; flex-wrap: wrap; margin-top: 30px; }
.partner-logo { opacity: 0.7; transition: var(--transition-speed); font-size:2rem; font-weight: 600; color:#868897; display:flex; flex-direction:column; align-items:center; }
.partner-logo svg{ margin-bottom:12px; }
.partner-logo:hover { opacity: 1; color: var(--main-color); }
.about-wrapper { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about-text { flex: 1.2; }
.about-image { flex: 0.9; min-width: 260px; border-radius: 32px; overflow: hidden; box-shadow: 0 20px 30px -10px rgba(0,0,0,0.5); }
.about-image img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.about-image:hover img { transform: scale(1.02); }
.feature-news { background: linear-gradient(145deg, #0f1123, #090b17); border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; }
.news-image { flex: 1.2; min-width: 280px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.feature-news:hover .news-image img { transform: scale(1.02); }
.news-content { flex: 1; padding: 30px 30px 30px 0; }
.news-badge { background: #ff4d6d20; color: #ff8c9e; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 16px; }
.news-content h2 { font-size: 1.9rem; margin-bottom: 18px; line-height: 1.3; }
.news-meta { display: flex; gap: 20px; margin: 20px 0; color: #9ca3cf; font-size: 0.9rem; }
.meta-icon-wrap{
    display:flex;
    align-items:center;
    gap:6px;
}
.news-desc { color: #cbd5ff; margin-bottom: 24px; }
.btn-news { background: transparent; border: 1px solid var(--main-color); padding: 10px 24px; border-radius: 40px; color: var(--main-color); font-weight: 600; transition: all var(--transition-speed); display: inline-block; text-decoration: none; cursor: pointer; }
.btn-news:hover { background: var(--main-color); color: white; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px; margin-top: 20px; }
.game-card { background: var(--bg-card); border-radius: 28px; overflow: hidden; transition: transform var(--transition-speed), box-shadow var(--transition-speed); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.game-card:hover { transform: translateY(-6px); box-shadow: 0 20px 35px rgba(0,0,0,0.5); }
.game-img { height: 180px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.game-info { padding: 22px; }
.game-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.game-tag { background: #2a2e45; display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; margin-bottom: 12px; }
.game-info p { color: #b9c3f0; margin-bottom: 20px; font-size: 0.9rem; }
.game-link { color: var(--main-color); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
/* 案例卡片只保留flex布局，删除多余grid */
.cases-grid{
    display:flex;
    gap:30px;
}
.case-item{
    background:#0F101C;
    border:1px solid #222438;
    border-radius:20px;
    padding:40px 30px;
    flex:1;
    transition: all var(--transition-speed);
}
.case-item:hover { border-color: #ff4d6d60; }
.case-icon{
    margin-bottom:20px;
}
.case-item h4{
    font-size:2.2rem;
    color:#ffffff;
    margin-bottom:16px;
}
.case-item p{
    color:#ddd;
    font-size:1.3rem;
    margin-bottom:16px;
}
.highlight{
    color:#ff4d6d;
    font-size:1.3rem;
}
/*客户评价区域*/
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.testimonial-item {
    background: #0f1120;
    border-radius: 24px;
    padding: 26px;
    backdrop-filter: blur(2px);
    border: 1px solid #262a3e;
    transition: all var(--transition-speed);
}
.testimonial-item:hover { border-color: #ff4d6d60; }
.star-group{
    display:flex;
    gap:4px;
}
.testimonial-text { font-style: italic; margin: 15px 0; color: #cfd9ff; line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; border-top: 1px solid #262a46; padding-top: 16px; }
.author-avatar { width: 44px; height: 44px; background: #2a2f4b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #ffb3c1; }
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; background: #0b0d1a; border-radius: 36px; padding: 40px; }
.contact-info, .contact-form { flex: 1; min-width: 240px; }
.contact-info h3, .contact-form h3 { font-size: 1.6rem; margin-bottom: 20px; }
/* 替换原来行内样式，统一class */
.contact-item{
    display:flex;
    align-items:center;
    margin:18px 0;
}
.contact-svg-icon{
    margin-right:12px;
    flex-shrink:0;
}
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background: #181c2c; border: 1px solid #2c3148; border-radius: 28px; color: white; font-family: inherit; outline: none; transition: var(--transition-speed); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--main-color); }
.btn-submit { background: var(--main-color); border: none; padding: 12px 28px; border-radius: 40px; font-weight: bold; color: white; cursor: pointer; transition: var(--transition-speed); }
.btn-submit:hover { background: #e63e5e; transform: scale(0.97); }
.more-news { margin-top: 40px; }
.more-news h3 { font-size: 1.4rem; margin-bottom: 20px; display:flex; align-items:center; gap:8px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-item { border-bottom: 1px solid #22263e; padding: 12px 0; display: flex; justify-content: space-between; flex-wrap: wrap; }
.news-list-item a { color: #cdd9ff; text-decoration: none; font-weight: 500; cursor: pointer; transition: color var(--transition-speed); }
.news-list-item a:hover { color: var(--main-color); }
.news-date { font-size: 0.8rem; color: #7c84ac; }
footer { text-align: center; padding: 32px 0; color: #7c83ae; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 20px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #9aa4bf; text-decoration: none; transition: var(--transition-speed); }
.footer-links a:hover { color: var(--main-color); }
img { max-width: 100%; display: block; }
/*图标通用类*/
.icon-svg{
    display: inline-block;
    width:30px;
    height:30px;
    vertical-align: middle;
}
.about-badges {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.about-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.15rem;
}
.about-badge-item svg {
    flex-shrink: 0;
}
.social-icons{
    display:flex;
    gap:24px;
    margin-top:30px;
}

/*平板和移动端媒体查询*/
@media (max-width: 820px) {
    .nav-links { display: none; width: 100%; flex-direction: column; gap: 18px; padding: 20px 0; }
    .nav-links.show { display: flex; }
    .menu-icon { display: block; font-size: 28px; }
    .feature-news { flex-direction: column; }
    .news-content { padding: 0 20px 30px 20px; }
    .section-title { font-size: 1.8rem; }
    .contact-wrapper { padding: 24px; }
    .square-logo { width: 50px; height: 50px; border-radius: 14px; }
    .logo-text { font-size: 22px; }
    .hero-overlay { padding: 1rem 1rem; justify-content: center; }
    .hero-overlay h1 { font-size: 1.6rem; margin-bottom: 10px; line-height: 1.3; max-width: 100%; }
    .hero-overlay p { font-size: 0.75rem; margin-bottom: 16px; max-width: 95%; line-height: 1.4; }
    .hero-buttons { gap: 12px; }
    .hero-btn { padding: 8px 18px; font-size: 0.7rem; gap: 6px; }
    .hero-image { max-height: 480px; min-height: 320px; }
    .hero-single { border-radius: 24px; }
    .modal-content { padding: 25px 20px; }
    .wechat-id-box { font-size: 22px; }
    .hot-search-title { font-size: 1.2rem; }
    .keyword-item { padding: 5px 14px; font-size: 0.75rem; }
    /*移动端案例卡片100%宽度*/
    .cases-grid{
        flex-wrap:wrap;
    }
    .case-item{
        width:100%;
    }
}
@media (max-width: 600px){
    section{padding:40px 0;}
    .container{padding:0 16px;}
}
@media (max-width: 480px) {
    .square-logo { width: 44px; height: 44px; }
    .hero-overlay h1 { font-size: 1.3rem; margin-bottom: 6px; }
    .hero-overlay p { font-size: 0.65rem; margin-bottom: 12px; }
    .hero-btn { padding: 6px 14px; font-size: 0.6rem; }
    .hero-buttons { gap: 8px; }
    .hero-overlay { padding: 0.8rem 0.8rem; }
}
@media (max-width:768px){
    .hot-search-title{
        font-size:1.8rem;
    }
}