/* 铂金主题全局样式 */
:root {
    --platinum-light: #e5e4e2;
    --platinum-dark: #7c7c7c;
    --platinum-accent: #c0c0c0;
    --platinum-highlight: #d4af37;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--platinum-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 特殊悬停效果 */
.hover-effect {
    position: relative;
    display: inline-block;
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--platinum-highlight);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) ease-out;
}

.hover-effect:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D悬浮头部 */
header {
    background: linear-gradient(135deg, var(--platinum-light) 0%, var(--platinum-accent) 100%);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    transition: all 0.5s ease;
}

header:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--platinum-dark), var(--platinum-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--platinum-highlight);
}

/* 动态卡片效果 */
.main-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    transform: perspective(1000px) translateZ(0);
}

.main-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) translateZ(20px);
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--platinum-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--platinum-highlight), transparent);
}

/* 3D悬浮文章卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateZ(0);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.article-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: white;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--platinum-dark);
    margin-top: 15px;
}

/* 分类标签动画 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--platinum-accent);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.article-card:hover .category-tag {
    background-color: var(--platinum-highlight);
    color: white;
}

/* 文章详情页特效 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--platinum-dark);
    transition: all 0.5s ease;
}

.article-title:hover {
    color: var(--platinum-highlight);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--platinum-dark);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
}

/* 分页按钮动画 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: var(--platinum-accent);
    color: var(--text-dark);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: all 0.8s ease;
}

.pagination a:hover {
    background-color: var(--platinum-highlight);
    color: white;
    transform: translateY(-3px);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接动画 */
.friend-links {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--platinum-dark);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: var(--platinum-accent);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.friend-links-container a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.friend-links-container a:hover {
    background-color: var(--platinum-highlight);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.friend-links-container a:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--platinum-dark) 0%, #5a5a5a 100%);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    color: var(--platinum-light);
}

.copyright {
    font-size: 14px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .main-content {
        padding: 30px;
    }
}