/* ============================================
   移动端专利页面样式 - 精致高端医美风格
   Mobile Patent Page Styles - Refined Luxury Aesthetic
   ============================================ */

/* 字体定义 */
@font-face {
    font-family: "SourceHanSansCN-Regular";
    font-style: normal;
    font-weight: normal;
    src: url(../fonts/nbrand/SourceHanSansCN-Regular.ttf) format("truetype"),
         url(../fonts/nbrand/SourceHanSansCN-Regular.woff) format("woff"),
         url(../fonts/nbrand/SourceHanSansCN-Regular.svg) format("svg")
}

@font-face {
    font-family: "SourceHanSansCN-Medium";
    font-style: normal;
    font-weight: normal;
    src: url(../fonts/nbrand/SourceHanSansCN-Medium.ttf) format("truetype"),
         url(../fonts/nbrand/SourceHanSansCN-Medium.woff) format("woff"),
         url(../fonts/nbrand/SourceHanSansCN-Medium.svg) format("svg")
}

/* 基础样式 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 页面标题区域 */
.page-title {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f6f3 0%, #e8e4df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(159, 121, 68, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.page-title h1 {
    font-family: "SourceHanSansCN-Medium";
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: 4px;
    color: #9f7944;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* 专利列表容器 */
.patent-list {
    width: 100%;
    padding: 30px 15px;
    background: #fff;
}

/* 专利网格布局 */
.patent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* 专利卡片 */
.patent-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(159, 121, 68, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(159, 121, 68, 0.1);
}

.patent-item:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(159, 121, 68, 0.15);
}

.patent-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 专利图片区域 */
.patent-thumb {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f5f3f0;
}

.patent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.patent-item:active .patent-thumb img {
    transform: scale(1.05);
}

.patent-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(159, 121, 68, 0.12) 100%);
}

/* 专利信息区域 */
.patent-info {
    padding: 20px 18px 18px;
    background: #fff;
}

.patent-info h3 {
    font-family: "SourceHanSansCN-Medium";
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 专利元数据 */
.patent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.patent-meta span {
    font-family: "SourceHanSansCN-Regular";
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    padding: 4px 10px;
    background: #f8f6f3;
    border-radius: 4px;
    border: 1px solid rgba(159, 121, 68, 0.1);
}

/* 分页样式 */
.pagination {
    width: 100%;
    text-align: center;
    padding: 30px 15px;
}

.pagination .pagination,
.pagination .pagination li {
    display: inline-block;
    margin: 0 4px;
}

.pagination .pagination li a,
.pagination .pagination li span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    font-family: "SourceHanSansCN-Regular";
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid rgba(159, 121, 68, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .pagination li a:active,
.pagination .pagination li span.current {
    background: linear-gradient(135deg, #9f7944, #d3ab62);
    color: #fff;
    border-color: #9f7944;
}

/* 专利详情页 */
.patent-detail {
    width: 100%;
    padding: 20px 15px;
    background: #fff;
}

/* 专利详情图片 */
.patent-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(159, 121, 68, 0.15);
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
    margin-bottom: 25px;
    border: 2px solid rgba(159, 121, 68, 0.1);
}

.patent-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 专利详情信息 */
.patent-info {
    padding: 0 5px;
}

.patent-info h1 {
    font-family: "SourceHanSansCN-Medium";
    font-size: 26px;
    line-height: 1.3;
    color: #333;
    margin: 0 0 20px 0;
    position: relative;
    text-align: center;
}

.patent-info h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #9f7944, #d3ab62);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 专利元数据详情 */
.patent-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
    border-radius: 12px;
    border: 1px solid rgba(159, 121, 68, 0.15);
    box-shadow: 0 4px 16px rgba(159, 121, 68, 0.08);
}

/* 上一篇下一篇导航 */
.patent-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
    border-radius: 12px;
    border: 1px solid rgba(159, 121, 68, 0.15);
    box-shadow: 0 4px 16px rgba(159, 121, 68, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(159, 121, 68, 0.15);
    border-color: rgba(159, 121, 68, 0.3);
}

.nav-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nav-label {
    font-family: "SourceHanSansCN-Medium";
    font-size: 13px;
    line-height: 1.5;
    color: #9f7944;
    margin-bottom: 8px;
}

.nav-title {
    font-family: "SourceHanSansCN-Regular";
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.meta-item .label {
    font-family: "SourceHanSansCN-Medium";
    font-size: 14px;
    line-height: 1.7;
    color: #9f7944;
    min-width: 80px;
    flex-shrink: 0;
}

.meta-item .value {
    font-family: "SourceHanSansCN-Regular";
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    flex: 1;
}

/* 专利描述 */
.patent-description {
    margin-top: 30px;
}

.patent-description h2 {
    font-family: "SourceHanSansCN-Medium";
    font-size: 22px;
    line-height: 1.4;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(159, 121, 68, 0.2);
}

.description-content {
    font-family: "SourceHanSansCN-Regular";
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin: 0 0 14px 0;
}

.description-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.patent-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.patent-item:nth-child(1) { animation-delay: 0.1s; }
.patent-item:nth-child(2) { animation-delay: 0.2s; }
.patent-item:nth-child(3) { animation-delay: 0.3s; }
.patent-item:nth-child(4) { animation-delay: 0.4s; }

/* 横屏优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .patent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .patent-thumb {
        height: 280px;
    }

    .patent-info h3 {
        font-size: 20px;
    }

    .patent-meta-detail {
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }
}