/* 91妈妈 - 完整样式文件 */
/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    transition: background 0.4s ease, color 0.4s ease;
}

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

/* 头部样式 - 渐变背景 + 毛玻璃效果 */
header {
    background: linear-gradient(135deg, #f8a5c2, #f5cd79);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo span {
    color: #2c3e50;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    width: 200px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    transition: width 0.3s, background 0.3s;
}

.search-box input:focus {
    width: 250px;
    background: #fff;
}

.search-box button {
    padding: 8px 15px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
    background: #1a252f;
    transform: scale(1.05);
}

/* Banner 渐变大图 */
.banner {
    background: linear-gradient(135deg, #f8a5c2, #f5cd79);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: bannerGlow 6s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.banner .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.banner .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    background: #f9f9f9;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #f8a5c2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f5cd79;
}

/* 通用区块 */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f8a5c2, #f5cd79);
    margin: 10px auto;
    border-radius: 2px;
}

/* 网格布局 - 圆角卡片 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(240,240,240,0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #f8a5c2;
}

.card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    font-size: 15px;
}

/* 品牌介绍区域 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.about-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat .num {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #f8a5c2, #f5cd79);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat .label {
    color: #888;
    font-size: 14px;
}

/* 产品服务 */
.products .product-item {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-3px);
}

.product-item .info {
    flex: 1;
    min-width: 280px;
}

.product-item .info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-item .info ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.product-item svg {
    width: 80px;
    height: 80px;
    fill: #f8a5c2;
    flex-shrink: 0;
}

/* FAQ */
.faq-list .faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-item .question {
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item .question:hover {
    color: #f8a5c2;
}

.faq-item .question::after {
    content: "+";
    font-size: 20px;
    color: #f8a5c2;
    transition: transform 0.3s;
}

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

.faq-item .answer {
    padding-top: 10px;
    color: #555;
    display: none;
    line-height: 1.8;
}

.faq-item.active .answer {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* HowTo 步骤 */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.howto-steps li::before {
    content: counter(step);
    background: linear-gradient(135deg, #f8a5c2, #f5cd79);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* 文章卡片 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(240,240,240,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.article-card .date {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 5px;
}

.article-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.article-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-card .read-more {
    color: #f8a5c2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.article-card .read-more:hover {
    color: #f5cd79;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.contact-info .item {
    padding: 20px;
    background: rgba(249,249,249,0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
}

.contact-info .item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.9);
}

.contact-info .item svg {
    width: 40px;
    height: 40px;
    fill: #f8a5c2;
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ccc;
    padding: 40px 0;
    font-size: 14px;
}

.footer .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s, transform 0.2s;
}

.footer a:hover {
    color: #f8a5c2;
    transform: translateX(3px);
}

.footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8a5c2, #f5cd79);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, opacity 0.3s;
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.back-to-top:hover {
    transform: scale(1.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s;
}

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

/* 暗黑模式切换按钮 */
.dark-toggle {
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    border: none;
    font-size: 14px;
    transition: background 0.3s;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 暗黑模式 */
.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

.dark-mode .card,
.dark-mode .article-card {
    background: rgba(22,33,62,0.9);
    backdrop-filter: blur(10px);
    border-color: #333;
}

.dark-mode .faq-item {
    border-color: #444;
}

.dark-mode .contact-info .item {
    background: rgba(22,33,62,0.8);
}

.dark-mode .breadcrumb {
    background: #16213e;
}

.dark-mode .footer {
    background: #0f0f1a;
}

.dark-mode .stat .num {
    background: linear-gradient(135deg, #f5cd79, #f8a5c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .section-title {
    color: #f5cd79;
}

.dark-mode .howto-steps li::before {
    background: linear-gradient(135deg, #f5cd79, #f8a5c2);
}

.dark-mode .product-item {
    background: rgba(22,33,62,0.6);
}

.dark-mode .banner {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
}

.dark-mode header {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
}

.dark-mode .logo span {
    color: #f5cd79;
}

.dark-mode .search-box input {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dark-mode .search-box input:focus {
    background: rgba(255,255,255,0.2);
}

.dark-mode .card h3,
.dark-mode .article-card h3,
.dark-mode .product-item .info h3,
.dark-mode .faq-item .question {
    color: #f5cd79;
}

.dark-mode .card p,
.dark-mode .article-card p,
.dark-mode .product-item .info p,
.dark-mode .faq-item .answer,
.dark-mode .about-text p {
    color: #bbb;
}

.dark-mode .about-stats .label {
    color: #999;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-radius: 10px;
        margin-top: 10px;
    }

    nav ul.show {
        display: flex;
    }

    .banner h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        order: 3;
        margin-top: 10px;
    }

    .dark-toggle {
        margin-top: 10px;
        align-self: flex-end;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner {
        padding: 40px 0;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 16px;
    }

    .section {
        padding: 30px 0;
    }

    .grid {
        gap: 20px;
    }

    .articles-grid {
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .stat .num {
        font-size: 28px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* 额外 hover 和交互优化 */
.card,
.article-card,
.product-item,
.contact-info .item {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button, .btn, nav a {
    transition: all 0.3s ease;
}

/* 搜索按钮动画 */
.search-box button:active {
    transform: scale(0.95);
}

/* 暗黑模式切换动画 */
body {
    transition: background 0.4s ease, color 0.4s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #f5cd79;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
}