/* 移动优先的响应式设计 - 驱狗器软文页面 */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部区域 */
.header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.advertisement {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    margin: 0;
}

.logo-bar {
    padding: 20px 0;
    text-align: center;
}

.logo-img {
    max-width: 200px;
    height: auto;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

/* 标题样式 */
h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 30px 0 20px 0;
    color: #2c3e50;
}

h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 25px 0 15px 0;
    color: #2c3e50;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #979797;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-content {
    flex: 1;
}

.author-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.author-date {
    color: #666;
    font-size: 14px;
}

/* 图片样式 */
.content-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 引用框 */
.quote-box {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 60px;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 15px;
    line-height: 1;
}

.quote-content {
    margin-left: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* 按钮样式 */
.cta-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    padding: 18px 30px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cta-button:hover,
.cta-button:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:active {
    transform: translateY(0);
}

/* 特色列表 */
.feature-list {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature-icon {
    color: #28a745;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 2px;
}

/* 评论区域 */
.review-section {
    margin: 40px 0;
}

.review-item {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.review-stars {
    color: #ffc107;
    margin-left: 10px;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 20px;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    /* 桌面端移除底部padding */
    body {
        padding-bottom: 0;
    }

    /* 桌面端隐藏固定按钮 */
    .mobile-fixed-cta {
        display: none;
    }

    /* 桌面端显示原始按钮 */
    .main-content .cta-button {
        display: block !important;
    }

    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 19px;
    }

    .author-info {
        padding: 25px;
    }

    .author-img {
        width: 80px;
        height: 80px;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    h1 {
        font-size: 42px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    p {
        font-size: 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.text-italic {
    font-style: italic;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* 隐藏元素 */
.hidden {
    display: none;
}

/* 移动端特定优化 */
@media (max-width: 767px) {
    /* 为固定按钮预留底部空间 */
    body {
        font-size: 16px;
        line-height: 1.5;
        padding-bottom: 100px;
    }

    /* 触摸友好的链接 */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* 移动端图片优化 */
    .content-img {
        margin: 15px 0;
    }

    /* 移动端按钮优化 */
    .cta-button {
        font-size: 16px;
        padding: 16px 24px;
        margin: 25px auto;
        min-height: 56px;
    }

    /* 移动端作者信息 */
    .author-info {
        padding: 15px;
        margin: 20px 0;
    }

    .author-img {
        width: 50px;
        height: 50px;
    }

    /* 移动端引用框 */
    .quote-box {
        padding: 15px;
        margin: 20px 0;
    }

    .quote-content {
        margin-left: 25px;
        font-size: 15px;
    }

    /* 移动端特色列表 */
    .feature-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    /* 移动端评论 */
    .review-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* 移动端Footer */
    .footer {
        padding: 30px 0 15px 0;
    }

    .footer-disclaimer {
        font-size: 11px;
        line-height: 1.4;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
        font-size: 13px;
    }

    /* 移动端固定按钮 */
    .mobile-fixed-cta {
        position: fixed;
        bottom: 20px;
        left: 16px;
        right: 16px;
        z-index: 1000;
        padding: 0;
    }

    .mobile-fixed-cta .cta-button {
        margin: 0;
        width: 100%;
        max-width: none;
        background: linear-gradient(135deg, #ff4757, #ff3742);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        font-size: 17px;
        font-weight: 700;
        padding: 16px 24px;
        border: none;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-fixed-cta .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s;
    }

    .mobile-fixed-cta .cta-button:active::before {
        left: 100%;
    }

    .mobile-fixed-cta .cta-button:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }

    .mobile-fixed-cta .cta-button:hover {
        background: linear-gradient(135deg, #ff3742, #ff2d3a);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
        transform: translateY(-1px);
    }

    /* 隐藏页面中的原始按钮 */
    .main-content .cta-button {
        display: none;
    }

    /* 添加脉冲动画效果 */
    @keyframes pulse {
        0% {
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        }
        50% {
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6), 0 0 0 8px rgba(255, 71, 87, 0.1);
        }
        100% {
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        }
    }

    .mobile-fixed-cta .cta-button {
        animation: pulse 2s infinite;
    }

    /* 添加购物车图标 */
    .mobile-fixed-cta .cta-button::after {
        content: '🛒';
        margin-left: 8px;
        font-size: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .cta-button {
        font-size: 15px;
        padding: 14px 20px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin: 0 0 10px 0;
    }
}
