/* ===== 爱动漫网dfls - style.css ===== */
/* ===== 全局重置与变量 ===== */
:root {
    --primary: #ff6b6b;
    --secondary: #ffa502;
    --accent: #2ed573;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f23;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #666666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font);
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
img {
    max-width: 100%;
    height: auto;
}
ul {
    list-style: none;
}
/* ===== 暗黑模式 ===== */
body.dark-mode {
    --light-bg: #121212;
    --card-bg: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-muted: #aaaaaa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.6);
}
body.dark-mode section {
    background: var(--light-bg) !important;
}
body.dark-mode .card,
body.dark-mode article,
body.dark-mode .faq-item {
    background: var(--card-bg) !important;
}
/* ===== 头部导航 ===== */
#header {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, box-shadow 0.3s;
}
#header.scrolled {
    background: var(--darker-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}
.logo-sub {
    font-size: 14px;
    color: var(--secondary);
}
.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-list a {
    color: var(--text-light);
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}
.nav-list a:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}
.search-box input {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 180px;
    background: #2d2d5e;
    color: var(--text-light);
    transition: width 0.3s, background 0.3s;
}
.search-box input:focus {
    width: 220px;
    background: #3d3d7e;
}
.search-box button {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: var(--primary);
    color: var(--text-light);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.search-box button:hover {
    background: #e05555;
    transform: scale(1.05);
}
#darkModeToggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}
#darkModeToggle:hover {
    transform: rotate(20deg);
}
#menuToggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}
#mobileMenu {
    display: none;
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#mobileMenu ul {
    list-style: none;
    padding: 0;
}
#mobileMenu li {
    margin: 10px 0;
}
#mobileMenu a {
    color: var(--text-light);
    font-size: 18px;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#mobileMenu a:hover {
    color: var(--primary);
}
/* ===== 响应式导航 ===== */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    #menuToggle {
        display: block;
    }
    .search-box input {
        width: 120px;
    }
    .search-box input:focus {
        width: 150px;
    }
    .header-inner {
        gap: 10px;
    }
}
/* ===== 首页Banner ===== */
#home {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-light);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 107, 0.15), transparent 60%);
    animation: float 8s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.home-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
#home h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 1s ease;
}
#home p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}
.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}
.btn-primary {
    padding: 15px 30px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 30px;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary:hover {
    background: #e05555;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}
.btn-outline {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===== 通用区块 ===== */
section {
    padding: 60px 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
/* ===== 关于区块 ===== */
#about {
    background: var(--light-bg);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover::before {
    transform: scaleX(1);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}
.card p {
    color: var(--text-muted);
    line-height: 1.7;
}
/* ===== 产品区块 ===== */
#products {
    background: var(--card-bg);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}
.product-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
}
.product-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 20px;
}
.product-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
/* ===== 解决方案 ===== */
#solutions {
    background: var(--light-bg);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
/* ===== 案例区块 ===== */
#cases {
    background: var(--card-bg);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.case-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.case-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.testimonial {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.testimonial:hover {
    border-left-color: var(--secondary);
    transform: translateX(5px);
}
.testimonial p {
    font-style: italic;
    color: var(--text-muted);
}
.testimonial .author {
    font-weight: bold;
    margin-top: 10px;
    color: var(--text-dark);
}
/* ===== 文章区块 ===== */
#articles {
    background: var(--light-bg);
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
article {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
article h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.4;
}
article .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}
article p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}
article a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}
article a:hover {
    color: #e05555;
    padding-left: 5px;
}
/* ===== FAQ区块 ===== */
#faq {
    background: var(--card-bg);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.faq-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}
.faq-item:hover {
    box-shadow: var(--shadow);
}
.faq-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.3s;
}
.faq-item.active h3::after {
    transform: rotate(45deg);
}
.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
    margin-top: 10px;
}
.faq-item.active p {
    display: block;
}
/* ===== HowTo区块 ===== */
#howto {
    background: var(--light-bg);
}
.howto-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.howto-card:hover {
    box-shadow: var(--shadow-hover);
}
.howto-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}
.howto-card ul,
.howto-card ol {
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.howto-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}
/* ===== 联系区块 ===== */
#contact {
    background: var(--dark-bg);
    color: var(--text-light);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.contact-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}
.contact-item p {
    color: #ccc;
    line-height: 1.8;
}
/* ===== 页脚 ===== */
footer {
    background: var(--darker-bg);
    color: #ccc;
    padding: 40px 20px 20px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-col h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-col a {
    color: #ccc;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-col p {
    color: #aaa;
    line-height: 1.6;
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom p {
    margin-bottom: 5px;
    color: #888;
    font-size: 14px;
}
/* ===== 返回顶部按钮 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 15px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: var(--transition);
}
#backToTop:hover {
    background: #e05555;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}
/* ===== 滚动动画 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== 毛玻璃效果 ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}
body.dark-mode .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}
/* ===== 响应式微调 ===== */
@media (max-width: 576px) {
    section {
        padding: 40px 15px;
    }
    .section-title {
        font-size: 28px;
    }
    #home h1 {
        font-size: 32px;
    }
    #home p {
        font-size: 16px;
    }
    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 16px;
    }
    .card,
    .product-card,
    .case-card,
    .faq-item,
    article {
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 10px 12px;
        font-size: 16px;
    }
}
/* ===== 平滑滚动 & 选中样式 ===== */
::selection {
    background: var(--primary);
    color: var(--text-light);
}
/* ===== 图片懒加载占位 ===== */
img[data-src] {
    background: #e0e0e0;
    min-height: 100px;
}
body.dark-mode img[data-src] {
    background: #2a2a2a;
}
/* ===== 数字动画 ===== */
.animate-number {
    font-weight: bold;
    color: var(--primary);
    font-size: 2em;
}
/* ===== 其他实用类 ===== */
.text-center {
    text-align: center;
}
.mt-20 {
    margin-top: 20px;
}
.mb-20 {
    margin-bottom: 20px;
}
/* ===== 暗黑模式切换动画 ===== */
body {
    transition: background 0.3s, color 0.3s;
}
/* ===== 导航吸顶阴影 ===== */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
/* ===== 搜索按钮动画 ===== */
.search-box button:active {
    transform: scale(0.95);
}
/* ===== 卡片hover增强 ===== */
.card:hover h3 {
    color: #e05555;
}
/* ===== 响应式表格（如有） ===== */
@media (max-width: 768px) {
    .about-grid,
    .products-grid,
    .solutions-grid,
    .cases-grid,
    .testimonials,
    .articles-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e05555;
}
/* ===== 结束 ===== */