/* ========================================
   分类页面样式
   ======================================== */

.category-page-wrapper {
    background: #f5f7fa;
    padding: 30px 0 60px 0;
    min-height: calc(100vh - 200px);
}

/* ========================================
   面包屑导航样式
   ======================================== */

.breadcrumb-navigation {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    padding: 0 20px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item:hover {
    color: var(--beauty-primary);
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item i.fa-home {
    font-size: 15px;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-separator i {
    font-size: 14px;
}

/* 分类头部 */
.category-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--beauty-primary);
}

.category-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.category-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--beauty-primary);
}

/* 文章网格 */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.category-content {
    min-width: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card:hover .post-title a {
    color: var(--beauty-primary);
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--beauty-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* 分页导航 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.page-numbers:hover {
    background: var(--beauty-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,107,157,0.3);
}

.page-numbers.current {
    background: var(--beauty-primary);
    color: #fff;
}

.page-numbers.dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.page-numbers.dots:hover {
    transform: none;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.no-posts i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 18px;
    color: #999;
    margin: 0 0 30px 0;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .category-layout {
        grid-template-columns: 1fr 300px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .category-page-wrapper {
        padding: 20px 0 40px 0;
    }
    
    /* 面包屑 */
    .breadcrumb-navigation {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-container {
        font-size: 13px;
        padding: 0 15px;
        gap: 6px;
    }
    
    .breadcrumb-item.current {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .category-header {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-description {
        font-size: 14px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .pagination-wrapper {
        margin-top: 30px;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* 面包屑 */
    .breadcrumb-container {
        font-size: 12px;
        gap: 5px;
    }
    
    .breadcrumb-item.current {
        max-width: 150px;
    }
    
    .category-header {
        padding: 20px 15px;
    }
    
    .category-title {
        font-size: 20px;
        gap: 8px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* ========================================
   侧边栏样式
   ======================================== */

.single-post-sidebar {
    position: sticky;
    top: 50px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--beauty-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--beauty-primary);
}

/* 最新文章小工具 */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info h4 a {
    color: #333;
    text-decoration: none;
}

.recent-post-info h4 a:hover {
    color: var(--beauty-primary);
}

.recent-post-info .post-date {
    font-size: 12px;
    color: #999;
}

.recent-post-info .post-date i {
    margin-right: 4px;
}

/* 合作伙伴广告位小工具 */
.partner-ad-content {
    text-align: center;
}

.ad-placeholder {
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255,107,157,0.05) 0%, rgba(255,168,197,0.05) 100%);
    border: 2px dashed var(--beauty-primary);
    border-radius: 8px;
    margin-bottom: 15px;
}

.ad-placeholder i {
    font-size: 48px;
    color: var(--beauty-primary);
    margin-bottom: 15px;
}

.ad-placeholder p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ad-desc {
    font-size: 13px !important;
    color: #999 !important;
    font-weight: normal !important;
    margin-top: 8px !important;
}

.partner-contact-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.partner-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}


/* ========================================
   合作伙伴表单弹窗样式
   ======================================== */

.partner-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.partner-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000000;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.partner-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1000001;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-modal-close:hover {
    color: #333;
}

.partner-modal-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-modal-content h3 i {
    color: var(--beauty-primary);
}

.partner-form .form-group {
    margin-bottom: 20px;
}

.partner-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.partner-form input,
.partner-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.partner-form input:focus,
.partner-form textarea:focus {
    outline: none;
    border-color: var(--beauty-primary);
    box-shadow: 0 0 0 3px rgba(255,107,157,0.1);
}

.partner-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}

.form-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.form-submit-btn.loading {
    background: linear-gradient(135deg, #999 0%, #777 100%);
}

/* 表单消息提示 */
.form-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message::before {
    font-family: 'FontAwesome';
    font-size: 18px;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-success::before {
    content: '\f058';
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message-error::before {
    content: '\f06a';
}

/* 成功页面样式 */
#successContainer {
    text-align: center;
    padding: 20px;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-animation {
    margin: 20px 0 30px 0;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4caf50;
}

.icon-line {
    height: 5px;
    background-color: #4caf50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 43px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.2);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 43px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.success-title {
    font-size: 28px;
    font-weight: bold;
    color: #4caf50;
    margin: 20px 0 15px 0;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.success-submessage {
    font-size: 14px;
    color: #999;
    margin: 0 0 30px 0;
}

.success-submessage strong {
    color: var(--beauty-primary);
    font-weight: 600;
}

.success-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 25px 0;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
}

.info-item i {
    font-size: 18px;
    color: var(--beauty-primary);
    width: 20px;
    text-align: center;
}

.success-close-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
