/* ============================================
   style.css - 麻将胡了 | PG电子
   完整内联样式 | 响应式 | 暗色模式 | 动画
   ============================================ */

/* === 重置 & 基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #222;
    background: #f8f9fa;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 通用标题样式 === */
h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2d1b4e;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
    margin-top: 8px;
    transition: width 0.4s ease;
}

body.dark h2 {
    color: #ff6b35;
}

h2:hover::after {
    width: 100px;
}

/* === 毛玻璃通用类 === */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

body.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* === 渐变背景通用 === */
.gradient-bg {
    background: linear-gradient(135deg, #2d1b4e, #ff6b35, #f7931e);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === 圆角卡片通用 === */
.card-rounded {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .card-rounded {
    background: #2a2a2a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-rounded:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .card-rounded:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* === Header === */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo svg {
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

/* === 导航 === */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    font-size: 15px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 60%;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: #ff6b35;
}

.search-box input {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: white;
    width: 140px;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 10px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#darkModeToggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#darkModeToggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(20deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* === Hero Banner === */
.hero-banner {
    background: linear-gradient(135deg, #2d1b4e, #ff6b35, #f7931e);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: white;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.banner-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #2d1b4e;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.banner-visual svg {
    max-width: 100%;
    height: auto;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === 面包屑 === */
.breadcrumb {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
}

body.dark .breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* === 通用区块 === */
.section {
    padding: 60px 20px;
}

.bg-light {
    background: #f0f2f5;
}

body.dark .bg-light {
    background: #1e1e1e;
}

/* === 品牌介绍 === */
.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.brand-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.brand-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.brand-image:hover svg {
    transform: scale(1.02);
}

/* === 企业文化 === */
.culture-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .card {
    background: #2a2a2a;
}

.card svg {
    margin: 0 auto 16px;
}

.card h3 {
    margin: 16px 0 10px;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
}

body.dark .card p {
    color: #aaa;
}

/* === 团队介绍 === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .team-member {
    background: #2a2a2a;
}

.team-member svg {
    margin: 0 auto 16px;
    border-radius: 50%;
}

.team-member h3 {
    margin: 16px 0 6px;
}

.team-member p {
    font-size: 0.95rem;
    color: #666;
}

body.dark .team-member p {
    color: #aaa;
}

/* === 产品展示 === */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .product-item {
    background: #2a2a2a;
}

.product-item svg {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 12px;
}

.product-item h3 {
    margin-bottom: 10px;
}

.product-item p {
    font-size: 0.95rem;
    color: #555;
}

body.dark .product-item p {
    color: #bbb;
}

/* === 产品优势 === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .advantage {
    background: #2a2a2a;
}

.advantage svg {
    margin: 0 auto 16px;
}

.advantage h3 {
    margin: 16px 0 10px;
}

.advantage p {
    font-size: 0.95rem;
    color: #666;
}

body.dark .advantage p {
    color: #aaa;
}

/* === 服务支持 === */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .service-card {
    background: #2a2a2a;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

body.dark .service-card p {
    color: #aaa;
}

/* === 解决方案 === */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.solution-item:hover {
    transform: translateY(-5px);
}

body.dark .solution-item {
    background: #2a2a2a;
}

.solution-item h3 {
    margin-bottom: 12px;
    color: #ff6b35;
}

/* === 成功案例 === */
.case-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .case-item {
    background: #2a2a2a;
}

.case-item svg {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 12px;
}

.case-item h3 {
    margin-bottom: 8px;
}

.case-item p {
    font-size: 0.95rem;
    color: #555;
}

body.dark .case-item p {
    color: #bbb;
}

/* === 客户评价 === */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #ff6b35;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

body.dark .testimonial {
    background: #2a2a2a;
}

.testimonial p {
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial .author {
    margin-top: 16px;
    font-weight: bold;
    color: #ff6b35;
    font-style: normal;
}

/* === 新闻资讯 === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.dark .news-item {
    background: #2a2a2a;
}

.news-item svg {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 12px;
}

.news-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-item .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.news-item p {
    font-size: 0.9rem;
    color: #555;
}

body.dark .news-item p {
    color: #bbb;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 8px;
    transition: padding-left 0.3s;
}

.read-more:hover {
    padding-left: 8px;
}

/* === 最新文章 === */
.article-list article {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.article-list article:hover {
    transform: translateX(5px);
}

body.dark .article-list article {
    background: #2a2a2a;
}

.article-list h3 {
    margin-bottom: 8px;
}

.article-list .date {
    font-size: 0.85rem;
    color: #999;
}

/* === 热门推荐 === */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recommend-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, background 0.3s;
}

.recommend-item:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #fff, #fff5f0);
}

body.dark .recommend-item {
    background: #2a2a2a;
}

body.dark .recommend-item:hover {
    background: linear-gradient(135deg, #2a2a2a, #3a2a1a);
}

.recommend-item h3 {
    margin-bottom: 8px;
    color: #ff6b35;
}

/* === 相关推荐 === */
.related-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related-links a {
    background: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    font-weight: 500;
}

.related-links a:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

body.dark .related-links a {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark .related-links a:hover {
    background: #ff6b35;
    color: white;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #ff6b35;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    background: #f8f8f8;
}

body.dark .faq-question {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark .faq-question:hover {
    background: #333;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
    padding: 0 24px;
}

body.dark .faq-answer {
    background: #2a2a2a;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 18px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #555;
}

body.dark .faq-answer p {
    color: #bbb;
}

/* === HowTo 指南 === */
.howto {
    max-width: 800px;
    margin: 0 auto;
}

.howto h3 {
    margin: 24px 0 12px;
    color: #ff6b35;
}

.howto ol {
    padding-left: 20px;
}

.howto li {
    margin-bottom: 8px;
}

.howto p {
    font-size: 1rem;
    color: #555;
}

body.dark .howto p {
    color: #bbb;
}

/* === 联系我们 === */
.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.qr-codes {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-item svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s;
}

.qr-item:hover svg {
    transform: scale(1.05);
}

.qr-item p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

body.dark .qr-item p {
    color: #aaa;
}

/* === Footer === */
footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 20px 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 16px;
    color: #ff6b35;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #ff6b35;
    margin-top: 6px;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #f7931e;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* === 返回顶部按钮 === */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: none;
    transition: 0.3s;
    z-index: 999;
    opacity: 0.9;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
}

/* === 滚动动画 (fade-in) === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 数字增长动画 === */
.count-up {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
}

/* === 轮播图 === */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background: white;
}

body.dark .carousel-item {
    background: #2a2a2a;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-controls button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.carousel-controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* === 图片懒加载 === */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* === 暗黑模式额外调整 === */
body.dark .section p,
body.dark .section li {
    color: #ccc;
}

body.dark .section ul li {
    color: #ccc;
}

body.dark .section ul li::marker {
    color: #ff6b35;
}

/* === 响应式 === */
@media (max-width: 1024px) {
    .brand-grid,
    .culture-cards,
    .team-grid,
    .product-showcase,
    .advantages-grid,
    .service-cards,
    .solution-grid,
    .case-cards,
    .testimonials,
    .news-grid,
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 20px 20px;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
    }

    .brand-grid,
    .culture-cards,
    .team-grid,
    .product-showcase,
    .advantages-grid,
    .service-cards,
    .solution-grid,
    .case-cards,
    .testimonials,
    .news-grid,
    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-buttons {
        justify-content: center;
    }

    .search-box input {
        width: 100px;
    }

    .section {
        padding: 40px 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
    }

    .related-links {
        justify-content: center;
    }

    .related-links a {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    #backToTop {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .header-inner {
        padding: 8px 0;
    }

    .logo svg {
        width: 140px;
        height: auto;
    }

    .nav-actions {
        gap: 8px;
    }

    .search-box input {
        width: 80px;
        font-size: 12px;
    }

    #darkModeToggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}