/* 绿帽社网站样式 - 51findname.com */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* 搜索框 */
.search-container {
    background: #fff;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #ec4899;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄横幅 */
.hero-section {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 20px;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* 区块标题 */
.section-title {
    font-size: 2rem;
    color: #333;
    margin: 3rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ec4899;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #8b5cf6;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: #f0f0f0;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(236, 72, 153, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

.video-stats {
    display: flex;
    gap: 1rem;
}

/* 内容区块 */
.content-section {
    background: #fff;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h3 {
    font-size: 1.5rem;
    color: #ec4899;
    margin-bottom: 1.5rem;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* 特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    color: #ec4899;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* 专家展示 */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.expert-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.expert-card h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.expert-card .title {
    color: #ec4899;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expert-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 用户评价 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #ec4899;
}

.testimonial-card .user-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.testimonial-card .rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #666;
    font-style: italic;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.contact-card h4 {
    color: #ec4899;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-card img {
    max-width: 200px;
    margin: 1rem auto;
    display: block;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ec4899;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ec4899;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: #374151;
    padding: 0.8rem;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ec4899;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.qrcode-item p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ec4899;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(236, 72, 153, 0.3);
    border-radius: 50%;
    border-top-color: #ec4899;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 懒加载图片 */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

img.loaded {
    filter: blur(0);
}

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* 视频标签 */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 105, 180, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.video-desc {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

/* 专家卡片 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expert-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.expert-card h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.expert-card h4 {
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.expert-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.btn-contact, .btn-works {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 5px 0 0;
    background: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-contact:hover, .btn-works:hover {
    background: #ff1493;
}

/* 合作伙伴 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.partner-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-logo p {
    color: #666;
    font-size: 14px;
}

/* 用户评价 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ff69b4;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-header h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-rating {
    color: #ffa500;
    font-size: 16px;
    margin-bottom: 1rem;
}

.review-card p {
    color: #666;
    line-height: 1.8;
}

/* How-To指南 */
.howto-section h3 {
    color: #ff69b4;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.howto-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ff69b4;
}

.faq-item h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* 公司信息 */
.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.company-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.company-image p {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.company-details h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.company-details p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.company-details strong {
    color: #333;
}

.hero-image {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}
