/* min68blog 橙色主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 40px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部样式 - 更时尚的设计 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    box-shadow: var(--shadow);
}

/* 装饰性背景元素 */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: float 25s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.header-content {
    position: relative;
    z-index: 2;
}

.date-section {
    margin-bottom: 30px;
}

.year {
    font-size: 2.2rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
}

.date {
    font-size: 4rem;
    font-weight: 800;
    margin: 15px 0;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lunar-info {
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

/* 卡片样式 - 更现代的设计 */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-left: 20px;
}

.card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 127, 42, 0.4);
}

.card-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background-color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
}

.card-more:hover {
    transform: translateX(5px);
    background-color: var(--primary-lighter);
}

.card-more::after {
    content: '→';
    margin-left: 6px;
    transition: var(--transition);
}

.card-more:hover::after {
    transform: translateX(2px);
}

/* 60秒简讯样式 */
.sixty-news {
    list-style: none;
}

.sixty-news li {
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
    transition: var(--transition);
    padding: 12px 16px 12px 30px;
    border-radius: 12px;
}

.sixty-news li:hover {
    background-color: var(--primary-lighter);
}

.sixty-news li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 127, 42, 0.5);
}

.sixty-news li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.sixty-news li a:hover {
    color: var(--primary-color);
}

.sixty-news li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.sixty-news li a:hover::after {
    width: 100%;
}

/* 热搜榜样式 */
.hot-list-container {
    margin-bottom: 30px;
}

.hot-source-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--primary-lighter);
    border-radius: 12px;
}

.hot-source-title span {
    color: var(--primary-dark);
}

.hot-source-more {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.hot-source-more:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.hot-items {
    list-style: none;
}

.hot-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
    background-color: var(--primary-lighter);
}

.hot-item:last-child {
    margin-bottom: 0;
}

.hot-item:hover {
    background-color: var(--primary-light);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 127, 42, 0.1);
}

.hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.hot-rank.top3 {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 127, 42, 0.3);
}

.hot-rank.other {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.hot-content {
    flex: 1;
    min-width: 0;
}

.hot-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.hot-title:hover {
    color: var(--primary-color);
}

.hot-score {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 16px;
    flex-shrink: 0;
    background-color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 16px;
    transition: var(--transition);
}

.hot-item:hover .hot-score {
    background-color: var(--primary-color);
    color: white;
}

/* 热搜描述样式 */
.hot-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 6px;
    opacity: 0.9;
    font-weight: 400;
}

/* 锚点样式 */
.anchor {
    position: relative;
    top: -100px;
    display: block;
    height: 0;
    visibility: hidden;
}

/* 卡片副标题样式 */
.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 16px;
}

/* 历史上的今天样式 */
.history-list {
    list-style: none;
}

.history-item {
    margin-bottom: 16px;
    padding-left: 80px;
    position: relative;
    line-height: 1.6;
    padding: 16px 20px 16px 80px;
    border-radius: 12px;
    transition: var(--transition);
    background-color: var(--primary-lighter);
}

.history-item:hover {
    background-color: var(--primary-light);
    transform: translateX(8px);
}

.history-year {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.history-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}

.history-content a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 黄历样式 */
.lunar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lunar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-lighter);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.lunar-item:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 127, 42, 0.15);
}

.lunar-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.lunar-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
}

.yiji-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.yi-item, .ji-item {
    padding: 20px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid;
}

.yi-item {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    border-left: 4px solid #4CAF50;
}

.ji-item {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    border-left: 4px solid #F44336;
}

.yi-item:hover, .ji-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.yiji-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.yi-item .yiji-title {
    color: #4CAF50;
}

.ji-item .yiji-title {
    color: #F44336;
}

.yiji-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 每日一语样式 - 更美观的设计 */
.quote-container {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    background-color: var(--primary-lighter);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.quote-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 127, 42, 0.15);
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 2;
    position: relative;
    z-index: 1;
    font-weight: 500;
    padding: 0 40px;
}

.quote-container::before,
.quote-container::after {
    content: '"';
    font-size: 6rem;
    position: absolute;
    color: rgba(255, 127, 42, 0.1);
    font-style: italic;
    line-height: 1;
    font-weight: bold;
}

.quote-container::before {
    top: -20px;
    left: 30px;
}

.quote-container::after {
    bottom: -50px;
    right: 30px;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    margin-top: 40px;
    padding: 20px 0;
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-hover, #ff7043);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 保存图片按钮 - 更现代化的设计 */
.save-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.save-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: var(--transition);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoomIn {
    from { 
        transform: scale(0.9); 
        opacity: 0;
        border-radius: 0;
    }
    to { 
        transform: scale(1); 
        opacity: 1;
        border-radius: 16px;
    }
}

.close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #f1f1f1;
    font-size: 48px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.close:hover,
.close:focus {
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    height: 60px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 响应式设计 - 优化移动体验 */
@media (max-width: 768px) {
    .header {
        padding: 50px 0 70px;
        border-radius: 0 0 30px 30px;
    }
    
    .date {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .year {
        font-size: 1.8rem;
    }
    
    .lunar-info {
        gap: 20px;
    }
    
    .card {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .lunar-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .yiji-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .history-item {
        padding: 16px 16px 16px 70px;
    }
    
    .history-year {
        width: 40px;
        font-size: 1rem;
    }
    
    .save-btn {
        position: static;
        display: block;
        margin: 20px auto;
        width: fit-content;
    }
    
    .quote-container {
        padding: 30px 20px;
    }
    
    .quote-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .close {
        top: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0 60px;
    }
    
    .date {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    .card-title {
        font-size: 1.3rem;
        padding-left: 16px;
    }
    
    .card-title::before {
        width: 10px;
        height: 10px;
    }
    
    .lunar-item {
        padding: 16px;
    }
    
    .hot-rank {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .hot-title {
        font-size: 0.95rem;
    }
    
    .quote-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .quote-container::before,
    .quote-container::after {
        font-size: 4rem;
    }
}

/* 动画效果 - 更自然流畅 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 127, 42, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无障碍设计 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}