/* 上海安禾美阁美容咨询博客 - 简约专业风格 */
:root {
    --primary: #d4a574;
    --primary-dark: #c49464;
    --secondary: #3d3d3d;
    --text: #666;
    --light-bg: #fdfcfa;
    --white: #fff;
    --border: #f0ebe5;
    --shadow: 0 2px 15px rgba(0,0,0,0.05);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.9; color: var(--text); background: var(--light-bg);
    padding-bottom: 120px;
}

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

header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
nav { padding: 15px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--secondary); }

.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 500; transition: color 0.3s; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.hero { background: linear-gradient(135deg, #faf6f1 0%, #f5ebe3 100%); padding: 70px 0; text-align: center; }
.hero h1 { font-size: 2.2rem; color: var(--secondary); margin-bottom: 15px; font-weight: 600; }
.hero p { font-size: 1.1rem; color: var(--text); max-width: 600px; margin: 0 auto; opacity: 0.9; }

section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 { font-size: 1.6rem; color: var(--secondary); margin-bottom: 8px; font-weight: 600; }
.section-title p { color: #888; font-size: 15px; }

.card { background: var(--white); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.card h3 { color: var(--secondary); margin-bottom: 10px; font-size: 1.2rem; }
.card h3 a { text-decoration: none; color: var(--secondary); transition: color 0.3s; }
.card h3 a:hover { color: var(--primary); }

.article-card { background: var(--white); border-radius: var(--radius); padding: 25px 30px; margin-bottom: 20px; box-shadow: var(--shadow); transition: all 0.3s; border-left: 4px solid transparent; }
.article-card:hover { border-left-color: var(--primary); transform: translateX(5px); }
.article-card .article-date { color: #999; font-size: 13px; margin-bottom: 8px; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.article-card h3 a { text-decoration: none; color: var(--secondary); transition: color 0.3s; }
.article-card h3 a:hover { color: var(--primary); }
.article-card .article-excerpt { color: var(--text); font-size: 15px; line-height: 1.8; }

.btn { display: inline-block; padding: 10px 25px; background: var(--primary); color: var(--white); text-decoration: none; border-radius: 25px; font-weight: 500; transition: all 0.3s; font-size: 14px; }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

.page-header { background: linear-gradient(135deg, #faf6f1 0%, #f5ebe3 100%); padding: 50px 0; text-align: center; }
.page-header h1 { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; }
.page-header p { color: var(--text); font-size: 1rem; }

.breadcrumb { padding: 15px 0; font-size: 14px; color: #999; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 10px; }

.article-content { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-content h1 { font-size: 1.8rem; color: var(--secondary); margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
.article-content p { margin-bottom: 18px; line-height: 2; }
.article-content ul, .article-content ol { margin: 15px 0 20px 25px; line-height: 2; }
.article-content li { margin-bottom: 8px; }
.article-content h2 { color: var(--secondary); font-size: 1.4rem; margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.article-content h3 { color: var(--secondary); font-size: 1.2rem; margin: 25px 0 12px; }
.article-meta { color: #999; font-size: 14px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }

.about-section { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.about-section h2 { color: var(--secondary); font-size: 1.4rem; margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.about-section h2:first-child { margin-top: 0; }
.about-section p { margin-bottom: 15px; line-height: 2; }
.about-section ul { margin: 15px 0; padding-left: 25px; }
.about-section li { margin-bottom: 10px; color: var(--text); }

.contact-section { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px; background: var(--light-bg); border-radius: 10px; }
.contact-icon { font-size: 1.5rem; color: var(--primary); }
.contact-item strong { display: block; color: var(--secondary); margin-bottom: 5px; }
.contact-form { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--secondary); font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; transition: border-color 0.3s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

footer { background: var(--secondary); color: rgba(255,255,255,0.8); padding: 40px 0 20px; margin-top: 50px; }
footer h4 { color: var(--white); margin-bottom: 15px; font-size: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
footer ul li a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 25px; margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.category-tab { padding: 8px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 14px; color: var(--text); }
.category-tab:hover, .category-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.topic-item { background: var(--white); padding: 20px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: all 0.3s; text-decoration: none; color: var(--text); }
.topic-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); color: var(--primary); }
.topic-item .topic-icon { font-size: 1.5rem; margin-bottom: 10px; }
.topic-item .topic-title { font-size: 15px; font-weight: 500; }

.back-link { display: inline-block; margin-top: 20px; color: var(--primary); text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

/* 固定底部联系方式栏 */
.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
.contact-row:last-child {
    border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-left {
    flex: 1;
    padding: 14px 18px;
    background: #1a1a1a;
    color: #ffd700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.contact-left strong {
    color: #fff;
    font-size: 1.05rem;
    word-break: break-all;
}

.contact-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 22px;
    background: #07c160;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-width: 120px;
}
.contact-right:hover {
    background: #06ad56;
    transform: scale(1.02);
}
.contact-right:active {
    background: #059a4c;
    transform: scale(0.97);
}

/* 给body底部留空间，防止内容被遮挡 */
body {
    padding-bottom: 120px;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 10001;
    display: none;
}
.copy-toast.show {
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-contact-bar {
        width: 100vw;
    }
    .contact-row {
        width: 100%;
    }
    .contact-left {
        font-size: 0.82rem;
        padding: 12px 10px;
        gap: 2px;
    }
    .contact-left strong {
        font-size: 0.9rem;
    }
    .contact-right {
        padding: 12px 12px;
        font-size: 0.78rem;
        min-width: 90px;
    }
    body {
        padding-bottom: 100px;
    }
    .nav-linksbody {
        padding-bottom: 100px;
    }
    .nav-links { gap: 20px; font-size: 14px; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.8rem; }
    .article-content { padding: 25px; }
    .about-section, .contact-section { padding: 25px; }
    .articles-grid { grid-template-columns: 1fr; }
}

.latest-articles { margin-top: 40px; }
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item { background: var(--white); border-radius: var(--radius); padding: 25px 30px; box-shadow: var(--shadow); transition: all 0.3s; border-left: 4px solid transparent; }
.article-item:hover { border-left-color: var(--primary); transform: translateX(5px); }
.article-item .date { color: #999; font-size: 13px; margin-bottom: 8px; }
.article-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.article-item h3 a { text-decoration: none; color: var(--secondary); transition: color 0.3s; }
.article-item h3 a:hover { color: var(--primary); }
.article-item p { color: var(--text); font-size: 15px; line-height: 1.8; }

.loading { text-align: center; padding: 40px; color: #999; }
.tag { display: inline-block; padding: 3px 12px; background: var(--light-bg); color: var(--primary); border-radius: 15px; font-size: 12px; margin-right: 8px; }
.disclaimer { margin-top: 30px; padding: 20px; background: var(--light-bg); border-radius: 8px; font-size: 14px; color: #888; border-left: 4px solid var(--border); }
