/* 万家媒体网站通用样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* 头部导航样式 */
.header {
    background: linear-gradient(to right, #1966ff, #2983ff);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo img {
    height: 28px;
    margin-right: 8px;
}

.menu {
    cursor: pointer;
}

/* 按钮样式 */
.btn-blue {
    background-color: #1966ff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(25, 102, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25, 102, 255, 0.4);
}

.btn-blue img {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

/* 底部导航样式 */
.footer {
    background-color: #1966ff;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

/* 回到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(25, 102, 255, 0.8);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    transition: background-color 0.3s;
}

.scroll-top:hover {
    background-color: #1966ff;
}

.scroll-top img {
    width: 20px;
    height: 20px;
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.qrcode-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.qrcode-modal.active .qrcode-content {
    transform: scale(1);
}

.qrcode-content img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.qrcode-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.qrcode-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.close-modal {
    background-color: #1966ff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: #1254e0;
}

/* 通用组件样式 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    margin-top: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.section-title h2 {
    font-size: 16px;
    position: relative;
    padding-left: 10px;
}

.section-title h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: #1966ff;
}

.section-title .more {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.guide-text {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.guide-text:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg t="1698123485" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5898" width="12" height="12"><path d="M500.8 604.779L267.307 371.392l-45.227 45.27 278.741 278.613L779.307 416.66l-45.248-45.248z" p-id="5899" fill="%23666666"></path></svg>') no-repeat center;
    margin-left: 5px;
    transform: rotate(90deg);
}

/* 占位图标样式 */
.placeholder-icon {
    position: fixed;
    bottom: 20px;
    right: 70px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 22px;
    color: #1966ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.placeholder-icon:hover {
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* PC端背景装饰元素 */
.bg-decoration {
    display: none;
}

/* 响应式布局 */
@media (min-width: 768px) {
    body {
        max-width: 700px;
        background-color: #e6f0ff;
    }
    
    .container {
        border-radius: 10px;
        overflow: hidden;
        margin-top: 20px;
        margin-bottom: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .bg-decoration {
        display: block;
        position: fixed;
        z-index: -1;
    }
    
    .bg-decoration.circle-1 {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(25, 102, 255, 0.1), rgba(25, 102, 255, 0.05));
        top: -100px;
        left: -150px;
    }
    
    .bg-decoration.circle-2 {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(25, 102, 255, 0.08), rgba(25, 102, 255, 0.03));
        bottom: 10%;
        right: -100px;
    }
    
    .bg-decoration.dots {
        width: 200px;
        height: 200px;
        background-image: radial-gradient(rgba(25, 102, 255, 0.2) 1px, transparent 1px);
        background-size: 10px 10px;
        top: 30%;
        left: 5%;
    }
    
    .bg-decoration.wave {
        width: 100%;
        height: 100px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231966ff" fill-opacity="0.05" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        bottom: 0;
        left: 0;
        opacity: 0.7;
    }
}

@media (min-width: 992px) {
    body {
        max-width: 900px;
    }
    
    .container {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .bg-decoration.circle-1 {
        width: 400px;
        height: 400px;
    }
    
    .bg-decoration.circle-2 {
        width: 300px;
        height: 300px;
    }
    
    .bg-decoration.dots {
        width: 300px;
        height: 300px;
    }
}

@media (min-width: 1200px) {
    body {
        max-width: 1000px;
    }
    
    .bg-decoration.lines {
        display: block;
        position: fixed;
        width: 150px;
        height: 400px;
        background: repeating-linear-gradient(45deg, rgba(25, 102, 255, 0.03), rgba(25, 102, 255, 0.03) 2px, transparent 2px, transparent 10px);
        top: 20%;
        right: 10%;
        z-index: -1;
    }
}

/* 移动端软文平台样式 */

/* 固定底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.bottom-nav-item.active {
    color: #1966ff;
}

.bottom-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* 搜索框 */
.search-bar {
    background-color: white;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #1966ff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    margin-left: 10px;
}

/* 标签筛选器 */
.filter-tags {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    background-color: white;
    white-space: nowrap;
    scrollbar-width: none; /* 隐藏滚动条 */
}

.filter-tags::-webkit-scrollbar {
    display: none; /* Chrome隐藏滚动条 */
}

.filter-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

.filter-tag.active {
    background-color: #1966ff;
    color: white;
}

/* 优惠标签 */
.discount-tag {
    position: absolute;
    top: -4px;
    left: 10px;
    background-image: url('../picture/discount-4.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 36px;
    height: 20px;
    color: white;
    font-size: 10px;
    text-align: center;
    line-height: 20px;
}

/* 页面内容间隔 */
.section-spacing {
    height: 10px;
    background-color: #f5f5f5;
}

/* 弹窗效果 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    padding: 20px;
}

.modal-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

.modal-form {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn.cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.modal-btn.confirm {
    background-color: #1966ff;
    color: white;
    border: none;
}

/* 页底安全间隔，防止内容被底部导航栏遮挡 */
.bottom-spacing {
    height: 60px;
}

/* 新增特效 */
.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 特殊标记 */
.badge-new {
    display: inline-block;
    background-color: #ff5e5e;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 导航条吸顶 */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 微信绑定提示 */
.wechat-bind-tip {
    padding: 10px 15px;
    background-color: #f0f9ff;
    border-left: 3px solid #1966ff;
    margin: 10px 15px;
    font-size: 12px;
    color: #333;
} 