/* ============================================
   化妆品公司网站样式 - 全新设计
   设计理念：柔和、优雅、女性化、时尚
   主色调：粉色系，搭配金色点缀
 ============================================ */

/* --- 1. 全局变量与基础样式 --- */
:root {
    --primary-color: #e8b4bc;        /* 主粉色 */
    --secondary-color: #f5d5d9;      /* 次粉色 */
    --accent-color: #d4af8c;         /* 金色/米色点缀 */
    --dark-color: #5a4e4e;           /* 深棕色用于文字 */
    --light-color: #fff9f9;          /* 浅粉色背景 */
    --text-color: #5a4e4e;           /* 主文字颜色 */
    --border-color: #e8d2d2;         /* 边框颜色 */
    --white-color: #ffffff;          /* 纯白色 */
    --shadow: 0 5px 20px rgba(232, 180, 188, 0.15); /* 粉色阴影 */
    --shadow-strong: 0 10px 30px rgba(232, 180, 188, 0.25); /* 强调阴影 */
    --gradient-primary: linear-gradient(135deg, #f8e1e5 0%, #e8b4bc 100%);
    --gradient-secondary: linear-gradient(135deg, #fdf5f6 0%, #f8e1e5 100%);
    --gradient-accent: linear-gradient(135deg, #e8b4bc 0%, #d4af8c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-accent);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--white-color);
}

.btn:hover::before {
    width: 100%;
}

/* --- 2. 头部与导航 --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(232, 180, 188, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 180, 188, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo::before {
    content: '✦';
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    padding: 5px;
}

/* --- 3. 英雄区域 --- */
#hero {
    background: var(--gradient-secondary);
    color: var(--dark-color);
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(232, 180, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 140, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* --- 4. 解决方案区域 --- */
#solutions .container {
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 180, 188, 0.2);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(232, 180, 188, 0.2);
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* 解决方案图标样式 */
.icon-cloud::before { content: "☁️"; }
.icon-data::before { content: "📊"; }
.icon-ai::before { content: "🤖"; }
.icon-security::before { content: "🔒"; }
.icon-iot::before { content: "📱"; }
.icon-consult::before { content: "💼"; }

.solution-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.solution-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- 5. 关于我们区域 --- */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-visual {
    flex: 1;
    height: 350px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '🌸';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-visual span {
    z-index: 1;
    text-align: center;
    padding: 20px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-action {
    margin-top: 2.5rem;
}

/* --- 6. 资讯/文章区域 --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(232, 180, 188, 0.2);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.news-cover {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--gradient-primary);
}

.news-card:nth-child(2n) .news-cover {
    background: linear-gradient(135deg, #f8e1e5 0%, #d4af8c 100%);
}

.news-card:nth-child(3n) .news-cover {
    background: linear-gradient(135deg, #f5d5d9 0%, #e8b4bc 100%);
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.news-card:hover .news-cover img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-content h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s;
}

.news-content h4 a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-meta a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.read-more-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-start;
    position: relative;
    padding-bottom: 3px;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.read-more-link:hover::after {
    width: 100%;
}

/* --- 7. 分页样式 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--white-color);
    font-weight: 600;
}

.page-btn:hover {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-current {
    display: inline-flex;
    align-items: center;
    height: 45px;
    padding: 0 20px;
    font-weight: 600;
    color: var(--dark-color);
    background: var(--light-color);
    border-radius: 50px;
}

/* --- 8. FAQ 常见问题区域 --- */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    background: var(--white-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(232, 180, 188, 0.1);
}

.faq-question {
    width: 100%;
    background: var(--white-color);
    border: none;
    text-align: left;
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
}

.faq-answer p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    border-top: 1px dashed rgba(232, 180, 188, 0.3);
    padding: 20px 0 0;
    margin-top: 15px;
}

/* --- 9. 单篇文章/页面样式 --- */
.page-container {
    padding: 60px 0 100px;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #888;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 12px;
    color: var(--border-color);
}

.page-header {
    margin-bottom: 40px;
    text-align: left;
}

.page-header.center-header {
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.page-meta {
    color: #888;
    font-size: 0.95rem;
    margin-top: 15px;
}

.page-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-meta a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.markdown-body {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
    overflow-x: hidden;
}

.markdown-body h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    text-align: left;
}

.markdown-body h2::after {
    display: none;
}

.markdown-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.markdown-body p {
    margin-bottom: 1.5rem;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.8rem;
    position: relative;
}

.markdown-body ul li::before {
    content: '✦';
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(232, 180, 188, 0.05);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #666;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 1px;
}

.markdown-body a:hover {
    border-bottom-style: solid;
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 40px 0;
}

.markdown-body pre {
    background: #2d3748;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 25px;
}

.post-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-block;
    background: var(--light-color);
    padding: 8px 18px;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-next, .nav-prev {
    max-width: 45%;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-next:hover, .nav-prev:hover {
    color: var(--primary-color);
}

.nav-next span, .nav-prev span {
    display: block;
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    margin-bottom: 8px;
}

/* --- 10. 404错误页面 --- */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 700;
}

.error-page p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #666;
}

.no-content {
    text-align: center;
    padding: 60px;
    color: #999;
    background: var(--light-color);
    border-radius: 15px;
    font-size: 1.2rem;
    grid-column: 1/-1;
}

/* --- 11. 页脚样式 --- */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 70px 0 25px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* --- 12. 响应式设计 --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    .about-visual {
        height: 300px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        box-shadow: 0 10px 20px rgba(232, 180, 188, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .main-nav ul li a::after {
        display: none;
    }
    
    #about .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
        height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-next, .nav-prev {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #hero {
        height: 70vh;
        min-height: 500px;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .solutions-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card, .news-card {
        padding: 25px 20px;
    }
    
    .about-visual {
        height: 220px;
        font-size: 1.3rem;
    }
    
    .about-visual::before {
        font-size: 6rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-btn {
        width: 40px;
        height: 40px;
    }
}

/* --- 13. 额外装饰元素 --- */
/* 添加一些化妆品相关的装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(232, 180, 188, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 140, 0.03) 0%, transparent 20%);
    z-index: -1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 选中文本样式 */
::selection {
    background-color: var(--primary-color);
    color: var(--white-color);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white-color);
}