/* ===== 抖阴植物视频社区 - 全站样式 ===== */
/* fehrpsy.cn 抖阴品牌主题CSS */

:root {
    --dy-primary: #2d8c3c;
    --dy-primary-dark: #1a6b28;
    --dy-secondary: #f5a623;
    --dy-accent: #e74c3c;
    --dy-bg: #f8f9fa;
    --dy-bg-dark: #1a1a2e;
    --dy-text: #333333;
    --dy-text-light: #666666;
    --dy-white: #ffffff;
    --dy-border: #e0e0e0;
    --dy-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --dy-radius: 8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--dy-text);
    background: var(--dy-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--dy-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--dy-secondary); }

img { max-width: 100%; height: auto; display: block; }

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

/* ===== 头部导航 ===== */
.dy-header {
    background: var(--dy-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dy-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dy-logo { display: flex; align-items: center; gap: 10px; }
.dy-logo img { height: 45px; width: auto; }
.dy-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--dy-primary); }

.dy-nav { display: flex; align-items: center; gap: 0; }
.dy-nav a {
    padding: 10px 16px;
    color: var(--dy-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.dy-nav a:hover, .dy-nav a.active {
    color: var(--dy-primary);
    border-bottom-color: var(--dy-primary);
}

.dy-mobile-menu { display: none; cursor: pointer; font-size: 1.5rem; }

/* ===== 搜索框 ===== */
.dy-search-bar {
    background: linear-gradient(135deg, var(--dy-primary), var(--dy-primary-dark));
    padding: 12px 0;
}
.dy-search-bar .container { display: flex; justify-content: center; }
.dy-search-form {
    display: flex;
    max-width: 600px;
    width: 100%;
    background: var(--dy-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dy-search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}
.dy-search-form button {
    background: var(--dy-secondary);
    border: none;
    padding: 12px 25px;
    color: var(--dy-white);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.dy-search-form button:hover { background: #e09500; }

/* ===== Banner区域 ===== */
.dy-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--dy-bg-dark);
}
.dy-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.dy-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}
.dy-banner-content {
    text-align: center;
    color: var(--dy-white);
    padding: 20px;
    max-width: 800px;
}
.dy-banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.dy-banner-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.dy-banner-btn {
    display: inline-block;
    background: var(--dy-secondary);
    color: var(--dy-white);
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}
.dy-banner-btn:hover {
    background: #e09500;
    transform: translateY(-2px);
    color: var(--dy-white);
}

/* ===== 通用区块 ===== */
.dy-section {
    padding: 60px 0;
}
.dy-section-alt {
    background: var(--dy-white);
}
.dy-section-title {
    text-align: center;
    margin-bottom: 45px;
}
.dy-section-title h2 {
    font-size: 2rem;
    color: var(--dy-text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.dy-section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--dy-primary);
    margin: 10px auto 0;
}
.dy-section-title p {
    color: var(--dy-text-light);
    font-size: 1rem;
    margin-top: 10px;
}

/* ===== 视频卡片 ===== */
.dy-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
.dy-video-card {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    overflow: hidden;
    box-shadow: var(--dy-shadow);
    transition: all 0.3s;
    cursor: pointer;
}
.dy-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.dy-video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}
.dy-video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.dy-video-card:hover .dy-video-thumb img {
    transform: scale(1.05);
}
.dy-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.dy-video-card:hover .dy-video-play { opacity: 1; }
.dy-video-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
.dy-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}
.dy-video-info {
    padding: 15px;
}
.dy-video-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dy-video-meta {
    display: flex;
    gap: 15px;
    color: var(--dy-text-light);
    font-size: 0.85rem;
}
.dy-video-meta span { display: flex; align-items: center; gap: 4px; }
.dy-video-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.dy-tag {
    display: inline-block;
    background: #e8f5e9;
    color: var(--dy-primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* ===== 模块卡片 ===== */
.dy-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.dy-module-card {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    padding: 30px;
    box-shadow: var(--dy-shadow);
    transition: all 0.3s;
    text-align: center;
    border-top: 3px solid var(--dy-primary);
}
.dy-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.dy-module-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.dy-module-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dy-text);
}
.dy-module-card p {
    color: var(--dy-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 专家卡片 ===== */
.dy-expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.dy-expert-card {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    overflow: hidden;
    box-shadow: var(--dy-shadow);
    text-align: center;
    transition: all 0.3s;
}
.dy-expert-card:hover { transform: translateY(-3px); }
.dy-expert-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 25px auto 15px;
    border: 3px solid var(--dy-primary);
}
.dy-expert-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.dy-expert-card .role { color: var(--dy-primary); font-size: 0.85rem; margin-bottom: 10px; }
.dy-expert-card p { padding: 0 20px; color: var(--dy-text-light); font-size: 0.85rem; margin-bottom: 15px; }
.dy-expert-card .actions { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: center; }
.dy-btn-sm {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}
.dy-btn-primary { background: var(--dy-primary); color: var(--dy-white); }
.dy-btn-primary:hover { background: var(--dy-primary-dark); color: var(--dy-white); }
.dy-btn-outline { border: 1px solid var(--dy-primary); color: var(--dy-primary); }
.dy-btn-outline:hover { background: var(--dy-primary); color: var(--dy-white); }

/* ===== FAQ ===== */
.dy-faq-list { max-width: 800px; margin: 0 auto; }
.dy-faq-item {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    margin-bottom: 12px;
    box-shadow: var(--dy-shadow);
    overflow: hidden;
}
.dy-faq-q {
    padding: 18px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.dy-faq-q:hover { background: #f0f7f0; }
.dy-faq-q::after { content: '+'; font-size: 1.3rem; color: var(--dy-primary); transition: transform 0.3s; }
.dy-faq-item.active .dy-faq-q::after { content: '-'; }
.dy-faq-a {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--dy-text-light);
    line-height: 1.8;
}
.dy-faq-item.active .dy-faq-a {
    padding: 0 25px 18px;
    max-height: 500px;
}

/* ===== 用户评论 ===== */
.dy-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.dy-review-card {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    padding: 25px;
    box-shadow: var(--dy-shadow);
    position: relative;
}
.dy-review-card::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--dy-primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
}
.dy-review-card .stars { color: var(--dy-secondary); margin-bottom: 10px; font-size: 0.9rem; }
.dy-review-card .text { color: var(--dy-text-light); font-size: 0.9rem; margin-bottom: 15px; line-height: 1.6; }
.dy-review-card .author { font-weight: 600; font-size: 0.85rem; }
.dy-review-card .date { color: #999; font-size: 0.8rem; }

/* ===== 合作品牌墙 ===== */
.dy-brand-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}
.dy-brand-wall img {
    height: 60px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(50%);
}
.dy-brand-wall img:hover { opacity: 1; filter: grayscale(0%); }

/* ===== 分享按钮 ===== */
.dy-share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}
.dy-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dy-white);
    transition: all 0.3s;
    font-weight: 500;
}
.dy-share-btn:hover { transform: translateY(-2px); color: var(--dy-white); }
.dy-share-wechat { background: #07c160; }
.dy-share-weibo { background: #e6162d; }
.dy-share-douyin { background: #161823; }
.dy-share-bilibili { background: #00a1d6; }

/* ===== 面包屑 ===== */
.dy-breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--dy-text-light);
}
.dy-breadcrumb a { color: var(--dy-primary); }
.dy-breadcrumb span { margin: 0 8px; }

/* ===== 页脚 ===== */
.dy-footer {
    background: var(--dy-bg-dark);
    color: #ccc;
    padding: 50px 0 0;
}
.dy-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.dy-footer h4 {
    color: var(--dy-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}
.dy-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dy-primary);
}
.dy-footer a { color: #aaa; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.dy-footer a:hover { color: var(--dy-secondary); }
.dy-footer p { font-size: 0.85rem; line-height: 1.8; }
.dy-footer-qr { display: flex; gap: 20px; margin-top: 15px; }
.dy-footer-qr img { width: 100px; height: 100px; border-radius: 5px; }
.dy-footer-qr-label { text-align: center; font-size: 0.75rem; margin-top: 5px; }
.dy-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}
.dy-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.dy-footer-logo img { height: 35px; }
.dy-footer-logo span { color: var(--dy-white); font-size: 1.2rem; font-weight: 700; }

/* ===== 内页头图 ===== */
.dy-page-hero {
    background: linear-gradient(135deg, var(--dy-primary), var(--dy-primary-dark));
    color: var(--dy-white);
    padding: 60px 0;
    text-align: center;
}
.dy-page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.dy-page-hero p { font-size: 1rem; opacity: 0.9; }

/* ===== 内容区域 ===== */
.dy-content { padding: 40px 0; }
.dy-content h2 { font-size: 1.6rem; margin-bottom: 15px; color: var(--dy-text); }
.dy-content h3 { font-size: 1.3rem; margin: 25px 0 12px; color: var(--dy-primary-dark); }
.dy-content p { margin-bottom: 15px; line-height: 1.8; }
.dy-content-img {
    border-radius: var(--dy-radius);
    margin: 20px 0;
    box-shadow: var(--dy-shadow);
}

/* ===== 联系信息 ===== */
.dy-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.dy-contact-card {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    padding: 30px;
    box-shadow: var(--dy-shadow);
}
.dy-contact-card h3 { margin-bottom: 15px; color: var(--dy-primary); }
.dy-contact-card .info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.dy-contact-card .info-label { font-weight: 600; min-width: 80px; }

/* ===== How-To指南 ===== */
.dy-howto-steps {
    max-width: 700px;
    margin: 0 auto;
}
.dy-howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.dy-howto-num {
    width: 45px;
    height: 45px;
    background: var(--dy-primary);
    color: var(--dy-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.dy-howto-text h4 { margin-bottom: 5px; }
.dy-howto-text p { color: var(--dy-text-light); font-size: 0.9rem; }

/* ===== MCP服务前端 ===== */
.dy-mcp-panel {
    background: var(--dy-white);
    border-radius: var(--dy-radius);
    padding: 30px;
    box-shadow: var(--dy-shadow);
    margin: 20px 0;
    border-left: 4px solid var(--dy-primary);
}
.dy-mcp-panel h4 { color: var(--dy-primary); margin-bottom: 10px; }
.dy-mcp-status { display: flex; gap: 15px; flex-wrap: wrap; }
.dy-mcp-item {
    background: #f0f7f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dy-mcp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dy-primary);
    display: inline-block;
}

/* ===== 干扰标签隐藏 ===== */
.dy-noise { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .dy-nav { display: none; }
    .dy-mobile-menu { display: block; }
    .dy-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--dy-white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .dy-nav.active a { padding: 12px 20px; border-bottom: 1px solid var(--dy-border); }
    .dy-banner { height: 350px; }
    .dy-banner-content h1 { font-size: 1.8rem; }
    .dy-banner-content p { font-size: 1rem; }
    .dy-section { padding: 40px 0; }
    .dy-section-title h2 { font-size: 1.5rem; }
    .dy-video-grid { grid-template-columns: 1fr; }
    .dy-module-grid { grid-template-columns: 1fr; }
    .dy-expert-grid { grid-template-columns: repeat(2, 1fr); }
    .dy-footer-grid { grid-template-columns: 1fr 1fr; }
    .dy-page-hero { padding: 40px 0; }
    .dy-page-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .dy-expert-grid { grid-template-columns: 1fr; }
    .dy-footer-grid { grid-template-columns: 1fr; }
    .dy-review-grid { grid-template-columns: 1fr; }
}

/* ===== 懒加载 ===== */
img[loading="lazy"] { opacity: 1; }

/* ===== 动画 ===== */
.fade-in { opacity: 1; transform: translateY(0); transition: all 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
