@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* 设计系统与基础变量 */
:root {
    --primary-yellow: #FFD700;
    --primary-yellow-hover: #FFE033;
    --primary-yellow-dark: #E6B800;
    --accent-orange: #FF9900;
    --bg-dark: #0A0A0A;
    --bg-card: rgba(20, 20, 20, 0.8);
    --border-color: rgba(255, 215, 0, 0.15);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.95) 100%), url('duck_bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 黄黑渐变字体样式 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-orange) 40%, #111111 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.gradient-title {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-yellow) 60%, #121212 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
}

.logo-duck-icon {
    font-size: 2rem;
    animation: duck-wobble 3s infinite ease-in-out;
    display: inline-block;
}

.logo-img {
    height: 35px;
    width: auto;
    border-radius: 8px;
    animation: duck-wobble 3s infinite ease-in-out;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

/* 鸭子造型交互按钮 */
.duck-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-yellow);
    color: #0A0A0A;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 36px 14px 50px;
    border: 3px solid #000000;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 6px 0 #b39200, 0 12px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
    outline: none;
    overflow: visible;
}

/* 鸭子按钮的眼睛和嘴巴（伪元素） */
.duck-button::before {
    content: "🐤"; /* 使用小鸡/鸭表情作为按钮内置图符 */
    position: absolute;
    left: 18px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* 鸭子按钮屁股上的小尾巴 */
.duck-button::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--primary-yellow);
    border-top: 3px solid #000000;
    border-right: 3px solid #000000;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.duck-button:hover {
    transform: translateY(-4px);
    background-color: var(--primary-yellow-hover);
    box-shadow: 0 10px 0 #b39200, 0 18px 24px rgba(255, 215, 0, 0.15);
}

.duck-button:hover::before {
    transform: scale(1.3) rotate(-15deg);
}

.duck-button:hover::after {
    opacity: 1;
    right: -2px;
}

.duck-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b39200, 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 鸭子侧边悬浮组件 */
.floating-duck {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary-yellow);
    border: 3px solid #000000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: duck-float 3s infinite ease-in-out;
    transition: transform 0.2s;
}

.floating-duck:hover {
    transform: scale(1.1) rotate(15deg);
}

.floating-duck-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

/* 主落地页布局容器 */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 40px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-duck-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.duck-art-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.duck-mascot {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: duck-wobble 4s infinite ease-in-out;
}

.duck-mascot-img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    margin-bottom: 20px;
    animation: duck-wobble 4s infinite ease-in-out;
    display: inline-block;
}

/* 核心特性区 */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 价格模块 */
.pricing {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.price-card.popular {
    border: 2px solid var(--primary-yellow);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.1);
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
}

.price-card.popular:hover {
    transform: translateY(-8px) scale(1.03);
}

.price-badge {
    display: inline-block;
    background: var(--primary-yellow);
    color: #0A0A0A;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary-yellow);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: block;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-features li::before {
    content: "✓";
    color: var(--primary-yellow);
    font-weight: bold;
}

.price-card .duck-button {
    width: 100%;
    padding: 10px 15px 10px 30px;
    font-size: 0.95rem;
}

.price-card .duck-button::before {
    left: 10px;
    font-size: 1.1rem;
}

/* 博客文章推荐区 */
.blog-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
}

.blog-thumb {
    height: 180px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,153,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.blog-thumb::after {
    content: "COCODUCK BLOG";
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.blog-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-info h3 a:hover {
    color: var(--primary-yellow);
}

.blog-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.blog-link:hover {
    gap: 10px;
}

/* 博客单页特殊样式 */
.article-header {
    text-align: center;
    padding: 60px 0 30px;
    max-width: 800px;
    margin: 0 auto;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-yellow);
    font-weight: 700;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--primary-yellow);
    border-bottom: 1px dashed var(--primary-yellow);
    font-weight: 600;
}

.article-content a:hover {
    color: var(--primary-yellow-hover);
    border-bottom: 1px solid var(--primary-yellow-hover);
}

/* 内链跳转导航框 */
.internal-nav-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.internal-nav-box h4 {
    color: var(--primary-yellow);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.internal-nav-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.internal-nav-box li::before {
    content: "👉";
    margin-right: 8px;
}

/* 用户评价区 */
.reviews {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.review-stars {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.review-comment {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.review-username {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 常见问题 FAQ */
.faq {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    color: var(--text-muted);
    font-size: 1rem;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-top: 15px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-toggle-icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

/* 页脚 */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.9);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info {
    max-width: 300px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 30px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 动效关键帧 */
@keyframes duck-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg) translateY(-2px); }
    75% { transform: rotate(5deg) translateY(2px); }
}

@keyframes duck-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 移动端响应式断点 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .price-card.popular {
        transform: scale(1);
    }
    .price-card.popular:hover {
        transform: translateY(-8px) scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动端可以简化导航 */
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .article-content {
        padding: 30px 20px;
    }
    .article-header h1 {
        font-size: 2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-links-group {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
}
