/*
Theme Name: 极简导航
Theme URI: https://sf701.com
Author: sf701.com
Author URI: https://sf701.com
Description: 精选优质资源，提升您的上网效率
Version: 1.0
Text Domain: minimal-navigation
*/

/* 在这里保留所有之前的CSS样式 */



:root {
    --primary: #3498db;
    --primary-light: #e8f4fe;
    --primary-dark: #1a6ea9;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --accent-light: #fef2f1;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 14px;
    --glass-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
    color: var(--secondary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 15px;
    background-attachment: fixed;
    overflow-x: hidden;
    touch-action: pan-y;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* 优化头部样式 */
header {
    text-align: center;
    padding: 20px 15px 15px;
    margin-bottom: 20px;
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-sub {
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 8px;
    font-weight: 400;
    line-height: 1.5;
}

.datetime-container {
    background: var(--glass-bg);
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-top: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.1);
    max-width: 95%;
    width: 100%;
}

#current-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

#lunar-date {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.4;
}

/* 单列导航列表 - 高度增加 */
.nav-list {
    background: var(--glass-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #4da9ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    flex-shrink: 0;
    animation: icon-pulse 3s infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4); }
}

.nav-item:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
    animation: none;
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
}

.nav-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-item:hover .nav-title {
    color: var(--accent);
    transform: scale(1.02);
}

.nav-title i {
    margin-left: 10px;
    font-size: 0.95rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.nav-item:hover .nav-title i {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.nav-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition);
}

.nav-item:hover .nav-description {
    color: var(--accent);
    transform: scale(1.02);
}

.nav-action {
    margin-left: 15px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-item:hover .nav-action {
    transform: scale(1.05);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    min-width: 130px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: link-pulse 2s infinite;
}

@keyframes link-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 18px rgba(52, 152, 219, 0.5); }
}

.nav-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-item:hover .nav-link {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.5);
    animation: none;
}

.nav-item:hover .nav-link::after {
    opacity: 1;
}

.nav-link i {
    margin-left: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: translateX(5px);
}

/* 收藏按钮区域 - 双行大按钮 */
.bookmark-panel {
    text-align: center;
    margin: 40px 0;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255,248,248,0.9), rgba(255,255,255,0.9));
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(231, 76, 60, 0.1);
    backdrop-filter: blur(10px);
}

.bookmark-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
}

.bookmark-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: var(--white);
    text-decoration: none;
    padding: 16px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(231, 76, 60, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: btn-pulse 2s infinite;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 18px rgba(231, 76, 60, 0.25); }
    50% { transform: scale(1.02); box-shadow: 0 8px 22px rgba(231, 76, 60, 0.35); }
}

.bookmark-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0392b, var(--accent));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.bookmark-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 22px rgba(231, 76, 60, 0.35);
    animation: none;
}

.bookmark-btn:hover::before {
    opacity: 1;
}

.bookmark-btn i {
    font-size: 2.2rem;
}

.bookmark-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bookmark-btn-main {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.bookmark-btn-url {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 页脚样式 */
footer {
    background: var(--glass-bg);
    color: var(--gray);
    padding: 25px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    backdrop-filter: blur(10px);
}

.footer-intro {
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.7;
}

.footer-intro a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.footer-intro a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-intro a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
    color: var(--gray);
}

/* 装饰元素 */
.decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.decoration.circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 18px solid var(--primary);
    top: -80px;
    right: -80px;
}

.decoration.rect {
    width: 180px;
    height: 180px;
    border: 14px solid var(--accent);
    bottom: -70px;
    left: -70px;
    transform: rotate(25deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 18px 15px 12px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .title-sub {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    #current-time {
        font-size: 1rem;
    }
    
    #lunar-date {
        font-size: 0.85rem;
    }
    
    .datetime-container {
        padding: 10px 15px;
        width: 100%;
    }
    
    .nav-item {
        padding: 18px 15px;
    }
    
    .nav-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-right: 15px;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    .nav-description {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 110px;
    }
    
    .bookmark-btn {
        padding: 14px 20px;
    }
    
    .bookmark-btn i {
        font-size: 1.8rem;
    }
    
    .bookmark-btn-main {
        font-size: 1.1rem;
    }
    
    .bookmark-btn-url {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-info {
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-title, .nav-description {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-link {
        min-width: auto;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .bookmark-btn {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .bookmark-btn i {
        font-size: 1.6rem;
    }
    
    .bookmark-btn-main {
        font-size: 1rem;
    }
    
    .bookmark-btn-url {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 15px 10px 10px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .title-sub {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .datetime-container {
        padding: 8px 12px;
    }
    
    #current-time {
        font-size: 0.95rem;
    }
    
    #lunar-date {
        font-size: 0.8rem;
    }
    
    .nav-item {
        padding: 16px 12px;
        flex-wrap: nowrap;
    }
    
    .nav-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-right: 12px;
        margin-bottom: 0;
    }
    
    .nav-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .nav-description {
        font-size: 0.82rem;
        margin-bottom: 0;
        -webkit-line-clamp: 1;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
        min-width: auto;
        margin-left: 8px;
    }
    
    .bookmark-btn {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .bookmark-btn i {
        font-size: 1.4rem;
    }
    
    .bookmark-btn-main {
        font-size: 0.9rem;
    }
    
    .bookmark-btn-url {
        font-size: 0.8rem;
    }
}

/* 修复提示框样式 */
#bookmarkAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    color: var(--secondary);
    padding: 25px;
    border-radius: var(--radius);
    z-index: 1000;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(52, 152, 219, 0.1);
    max-width: 90%;
    width: 400px;
    backdrop-filter: blur(10px);
    animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: none;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 在现有CSS中添加以下内容 */

.no-items {
    background: var(--glass-bg);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    color: var(--gray);
}