/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

/* 导航栏 */
#navbar {
    position: sticky;
    top: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

#navbar > div:first-child {
    font-size: 1.6em;
    font-weight: 700;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

#navbar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.05em;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

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

#navbar ul li a:hover {
    color: #f39c12;
    background: rgba(255,255,255,0.1);
}

#navbar ul li a:hover::after {
    width: 80%;
}

#searchInput {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95em;
    transition: all 0.3s;
    width: 200px;
    backdrop-filter: blur(5px);
}

#searchInput:focus {
    outline: none;
    border-color: #e67e22;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.3);
}

#searchInput::placeholder {
    color: rgba(255,255,255,0.6);
}

#navbar button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

#navbar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

#darkModeToggle {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
}

#darkModeToggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: #e67e22;
    transform: rotate(15deg);
}

/* Banner轮播 */
#home {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(230, 126, 34, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(52, 152, 219, 0.08) 0%, transparent 50%);
    animation: bannerGlow 8s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, -5%) scale(1.1); }
}

#bannerSlider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    padding: 20px;
}

.banner-slide h1,
.banner-slide h2 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22, #d35400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.banner-slide p {
    font-size: 1.3em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-slide a {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-slide a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 126, 34, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home > div:last-child {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background: #e67e22;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.5);
}

/* 通用section样式 */
section {
    padding: 60px 20px;
    transition: background 0.3s;
}

section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    margin: 12px auto 0;
    border-radius: 2px;
}

section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

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

/* About section */
#about {
    max-width: 1200px;
    margin: 0 auto;
}

#about > div:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

#about > div:first-of-type > div {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

#about > div:first-of-type > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

#about > div:last-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

#about > div:last-of-type > div {
    background: rgba(234, 242, 248, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

#about > div:last-of-type > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

/* 主营产品 & 解决方案 */
section:nth-of-type(3),
section:nth-of-type(4) {
    background: rgba(241, 243, 245, 0.8);
    backdrop-filter: blur(5px);
}

section:nth-of-type(3) > div,
section:nth-of-type(4) > div {
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-of-type(3) > div > div,
section:nth-of-type(4) > div > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

section:nth-of-type(3) > div > div > div,
section:nth-of-type(4) > div > div > div {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

section:nth-of-type(3) > div > div > div:hover,
section:nth-of-type(4) > div > div > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

ul {
    line-height: 2.2;
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* 客户案例 */
section:nth-of-type(5) {
    background: rgba(241, 243, 245, 0.8);
}

section:nth-of-type(5) > div {
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-of-type(5) > div > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

section:nth-of-type(5) > div > div > div > div {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

section:nth-of-type(5) > div > div > div > div:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 文章区域 */
#articles {
    max-width: 1200px;
    margin: 0 auto;
}

#articles > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

#articles article {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

#articles article:nth-child(1) { animation-delay: 0.1s; }
#articles article:nth-child(2) { animation-delay: 0.2s; }
#articles article:nth-child(3) { animation-delay: 0.3s; }
#articles article:nth-child(4) { animation-delay: 0.4s; }
#articles article:nth-child(5) { animation-delay: 0.5s; }
#articles article:nth-child(6) { animation-delay: 0.6s; }
#articles article:nth-child(7) { animation-delay: 0.7s; }
#articles article:nth-child(8) { animation-delay: 0.8s; }
#articles article:nth-child(9) { animation-delay: 0.9s; }
#articles article:nth-child(10) { animation-delay: 1.0s; }

#articles article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

#articles article h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
    transition: color 0.3s;
}

#articles article:hover h3 {
    color: #e67e22;
}

#articles article p:first-of-type {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 12px;
}

#articles article a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

#articles article a:hover {
    color: #d35400;
    transform: translateX(4px);
}

/* FAQ区域 */
#faq {
    background: rgba(241, 243, 245, 0.8);
}

#faq > div {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-item h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.4em;
    color: #e67e22;
    transition: transform 0.3s;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    margin-top: 12px;
    color: #555;
    line-height: 1.8;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HowTo 区域 */
section:nth-of-type(7) {
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-of-type(7) > div {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 36px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

section:nth-of-type(7) > div h3 {
    color: #e67e22;
    margin-top: 20px;
    margin-bottom: 10px;
}

section:nth-of-type(7) > div h3:first-child {
    margin-top: 0;
}

section:nth-of-type(7) > div ol {
    padding-left: 24px;
    line-height: 2.2;
}

section:nth-of-type(7) > div ol li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #fff;
    padding: 50px 20px 30px;
}

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

footer h4 {
    color: #e67e22;
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
}

footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #e67e22;
    margin-top: 8px;
    border-radius: 2px;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    font-size: 0.95em;
}

footer ul {
    list-style: none;
    padding: 0;
}

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

footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

footer ul li a:hover {
    color: #e67e22;
    padding-left: 4px;
}

footer > div:last-child {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

footer > div:last-child p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
    margin-bottom: 6px;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border: none;
    font-size: 24px;
    display: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    transition: all 0.3s;
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 30px rgba(230, 126, 34, 0.6);
}

/* 暗色模式 */
.dark-mode {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}

.dark-mode section {
    background: #16213e !important;
}

.dark-mode .card,
.dark-mode #about > div:first-of-type > div,
.dark-mode #about > div:last-of-type > div,
.dark-mode section:nth-of-type(3) > div > div > div,
.dark-mode section:nth-of-type(4) > div > div > div,
.dark-mode section:nth-of-type(5) > div > div > div > div,
.dark-mode #articles article,
.dark-mode .faq-item,
.dark-mode section:nth-of-type(7) > div {
    background: rgba(15, 52, 96, 0.9) !important;
    color: #e0e0e0 !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
    color: #ecf0f1 !important;
}

.dark-mode p,
.dark-mode li {
    color: #bdc3c7 !important;
}

.dark-mode #articles article h3 {
    color: #ecf0f1 !important;
}

.dark-mode #articles article p:first-of-type {
    color: #95a5a6 !important;
}

.dark-mode .faq-answer {
    color: #bdc3c7 !important;
    border-top-color: rgba(255,255,255,0.1) !important;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    #navbar ul {
        gap: 16px;
    }
    
    #searchInput {
        width: 150px;
    }
    
    footer > div:first-child {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #navbar {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
    }
    
    #navbar > div:first-child {
        font-size: 1.3em;
    }
    
    #navbar ul {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    #navbar ul li a {
        font-size: 0.95em;
        padding: 4px 8px;
    }
    
    #searchInput {
        width: 120px;
        font-size: 0.9em;
    }
    
    .banner-slide h1,
    .banner-slide h2 {
        font-size: 2em;
    }
    
    .banner-slide p {
        font-size: 1.1em;
    }
    
    #home {
        min-height: 350px;
        padding: 60px 16px;
    }
    
    section {
        padding: 40px 16px;
    }
    
    section h2 {
        font-size: 1.8em;
    }
    
    #about > div:first-of-type,
    section:nth-of-type(3) > div > div,
    section:nth-of-type(4) > div > div,
    section:nth-of-type(5) > div > div,
    #articles > div {
        grid-template-columns: 1fr;
    }
    
    #about > div:last-of-type {
        grid-template-columns: 1fr;
    }
    
    #articles article {
        opacity: 1 !important;
        transform: none !important;
    }
    
    footer > div:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h4::after {
        margin: 8px auto 0;
    }
    
    #backToTop {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #navbar {
        padding: 10px 12px;
    }
    
    #navbar > div:first-child {
        font-size: 1.1em;
    }
    
    #navbar ul {
        gap: 8px;
    }
    
    #navbar ul li a {
        font-size: 0.85em;
        padding: 3px 6px;
    }
    
    #searchInput {
        width: 100px;
        font-size: 0.85em;
        padding: 6px 12px;
    }
    
    #navbar button {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .banner-slide h1,
    .banner-slide h2 {
        font-size: 1.6em;
    }
    
    .banner-slide p {
        font-size: 1em;
    }
    
    #home {
        min-height: 300px;
        padding: 40px 12px;
    }
    
    section {
        padding: 30px 12px;
    }
    
    section h2 {
        font-size: 1.5em;
    }
    
    .card,
    #about > div:first-of-type > div,
    #about > div:last-of-type > div,
    section:nth-of-type(3) > div > div > div,
    section:nth-of-type(4) > div > div > div,
    section:nth-of-type(5) > div > div > div > div,
    #articles article,
    .faq-item,
    section:nth-of-type(7) > div {
        padding: 18px;
    }
    
    .faq-item h3 {
        font-size: 1em;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

/* 滚动动画支持 */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 选择样式 */
::selection {
    background: rgba(230, 126, 34, 0.3);
    color: #2c3e50;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}