/* 基础变量定义 */
:root {
    --bg: #fafafa;
    --text: #2a2a2a;
    --text-light: #666;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --primary: #1c94ff;
    --primary-light: #4a72d9;
    --secondary: #2d4ca3;
    --accent: #f5f7ff;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-strong: rgba(0, 0, 0, 0.1);
    /* 液体渐变颜色 - 修改为青蓝色系 */
    --liquid-1: #2efaec;
    --liquid-2: #5baaff;
    --liquid-3: #bbf3ff;
    --liquid-4: #374bff;
    --section-bg-light: #ffffff;
    --section-bg-light-dark: #2a2a2a; /* 暗色模式下的对应色值 */
}
[data-theme="dark"] {
    --bg: #1a1a1a;
    --text: #f0f0f0;
    --text-light: #b0b0b0;
    --card-bg: #242424;
    --border: #333;
    --primary: #4a72d9;
    --primary-light: #5a81e9;
    --secondary: #3a63c9;
    --accent: #2d3748;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(0, 0, 0, 0.3);
    /* 深色模式液体渐变 - 青蓝色系 */
    --liquid-1: #1a5276;
    --liquid-2: #154360;
    --liquid-3: #1a5276;
    --liquid-4: #2980b9;
}
[data-theme="dark"] .section-bg-w {
    background-color: var(--section-bg-light-dark);
}
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--secondary);
    text-decoration: none;
}
.text-light {
    color: var(--text-light) !important;
}
/* 布局容器 */
.container-lg {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container-lg-s {
    margin: 0 auto;
    padding: 6rem 1.25rem 3rem;
}
/* 导航栏 */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.85);
}
.navbar-brand-img-1 {
    height: 38px;
    transition: transform 0.2s ease;
}
.navbar-brand-img-2{
    height: 20px;
    transition: transform 0.2s ease;
}
.nav-link {
    color: var(--text) !important;
    margin: 0 1rem;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}
.nav-link-active::after {
    width: 100%;
}
.nav-link:hover::after {
    width: 100%;
}
/* 暗色模式按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
/* 登录按钮样式优化 */
.login-btn {
    background-color: var(--primary);
    color: white !important;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(58, 99, 201, 0.2);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}
.login-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 99, 201, 0.25);
}
.login-btn i {
    margin-right: 0.3rem;
    font-size: 0.95rem;
}
/* 页脚 */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--card-bg);
}
.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}
.footer-logo-2{
    height: 40px;
    margin-bottom: 1.5rem;
}
.footer-about p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}
.footer-contact {
    font-size: 0.95rem;
}
.footer-contact h5 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.footer-contact div {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.footer-contact i {
    color: var(--primary);
}
.footer-ci{
    margin-right: 0.8rem;
}
/* 修复社交媒体图标居中 */
.footer-qr {
    text-align: center;
}
.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: white;
    padding: 6px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 0.8rem;
}
.footer-social {
    display: flex;
    margin-top: 1.5rem;
    padding-left: 0; /* 移除默认padding */
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
}
.footer-links h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}
.copyright {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}
.copyright a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
.copyright a:hover {
    color: var(--primary);
}
/* 返回顶部和联系我们按钮样式 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top, .contact-us {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(58, 99, 201, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.back-to-top:hover, .contact-us:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(58, 99, 201, 0.4);
}
.contact-us:hover {
    background-color: var(--primary);
}
/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes breathe {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}
/* 滚动显示动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* 响应式设计 */
@media (max-width: 1200px) {
    .features-grid, .tutorials-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1024px) {
    .role-row {
        gap: 4rem;
    }
}
@media (max-width: 992px) {
    .role-row, .role-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    .role-content, .role-img {
        width: 100%;
    }
    .role-img {
        margin-top: 2.5rem;
    }
    .role-content ul {
        padding-left: 0;
        list-style-position: inside;
    }
    .pricing-tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    #team-pricing {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .btn-primary, .btn-outline {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    section {
        padding: 5rem 0;
    }
    .section-title, .pricing-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-about, .footer-contact, .footer-links, .footer-qr {
        margin-bottom: 3rem;
    }
    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-social {
        justify-content: center;
    }
    .copyright {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }
    /* 移动端浮动按钮调整 */
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    .back-to-top, .contact-us {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    /* 公告栏响应式 */
    .announcement-label {
        display: none;
    }
    /* 联系表单响应式 */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}
@media (max-width: 576px) {
    .features-grid, .news-grid, .tutorials-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 140px 0 100px;
    }
    .navbar {
        padding: 0.6rem 0;
    }
    #team-pricing {
        grid-template-columns: 1fr;
    }
}