/* ============================================
   四虎 - 动物写真公司与视频社区 全站样式
   ugnzggzf.cn
   ============================================ */

/* === 基础重置与全局样式 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d7a5f;
    --primary-dark: #095c47;
    --primary-light: #e8f5f0;
    --secondary: #f59e0b;
    --secondary-light: #fef3c7;
    --accent: #10b981;
    --dark: #1a1a2e;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === 头部导航 === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 6px 0;
    font-size: 13px;
}

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

.header-top a {
    color: var(--white);
    opacity: 0.9;
}

.header-top a:hover {
    opacity: 1;
}

.header-main {
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-text small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

/* === 搜索栏 === */
.search-bar {
    background: var(--primary-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    max-width: 600px;
    width: 100%;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary);
}

.search-form input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--gray-700);
}

.search-form button {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* === 面包屑导航 === */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

/* === Banner区域 === */
.hero-banner {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--dark);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,122,95,0.85) 0%, rgba(26,26,46,0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-tags span {
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #d97706;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-green {
    background: var(--primary);
    color: var(--white);
}

.btn-green:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.section-alt {
    background: var(--white);
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-green {
    background: var(--primary-light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 680px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: var(--gray-400);
}

.section-header .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* === 视频卡片网格 === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--gray-200);
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(13,122,95,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.video-info {
    padding: 16px;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.video-tags span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}

/* === 特色模块卡片 === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* === 专家展示 === */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 24px auto 16px;
    overflow: hidden;
    border: 4px solid var(--primary-light);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info {
    padding: 0 20px 24px;
}

.expert-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.expert-info .role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.expert-info p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.expert-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.expert-links a {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* === FAQ区域 === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* === 用户评论 === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.review-stars {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-card blockquote {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.review-author-info strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.review-author-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* === 合作品牌墙 === */
.partner-wall {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.partner-wall .partner-item {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.partner-wall .partner-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === 联系信息 === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* === 社交分享 === */
.share-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
    opacity: 0.9;
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00a1d6; }

/* === 页脚 === */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-qr {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
}

.footer-qr-item {
    text-align: center;
}

.footer-qr-item p {
    font-size: 12px;
    margin-top: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--gray-400);
}

/* === How-To指南 === */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.howto-step {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    counter-increment: step;
    border: 1px solid var(--gray-200);
}

.howto-step::before {
    content: counter(step);
    position: absolute;
    top: -12px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.howto-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    margin-top: 8px;
}

.howto-step p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* === 内页通用 === */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 48px 0;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    margin-top: 40px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    margin-top: 32px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* === 社区话题卡片 === */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.topic-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.topic-card-img {
    height: 180px;
    overflow: hidden;
}

.topic-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-card:hover .topic-card-img img {
    transform: scale(1.05);
}

.topic-card-body {
    padding: 20px;
}

.topic-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.topic-card-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 12px;
}

.topic-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

/* === 数据统计 === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.section-dark .stat-number {
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-hero h1 {
        font-size: 26px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 320px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* === 干扰标签隐藏 === */
.noise-wrap {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -9999;
}
