/* ========================================
   4cc浏览器大全 - 样式文件
   ======================================== */

/* CSS 变量定义 */
:root {
    --bg-gradient-start: #fdf6e3;
    --bg-gradient-end: #f5e6c8;
    --card-bg: #ffffff;
    --card-border: #e8dcc8;
    --text-primary: #2c3e50;
    --text-secondary: #5a6a7a;
    --text-muted: #95a5a6;
    --accent-red: #e74c3c;
    --accent-orange: #f39c12;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --link-color: #5a6a7a;
    --link-hover: #2c3e50;
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-glow: rgba(231, 76, 60, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: #f5e6c5;
    background: radial-gradient(ellipse at 50% 0%, rgba(160, 110, 35, 0.16), transparent 45%), linear-gradient(135deg, #17120b 0%, #090807 50%, #100d08 100%);
    background-attachment: fixed;
}

/* 容器 */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

/* 卡片通用样式 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    margin-bottom: 14px;
    padding: 18px;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: 0 8px 30px var(--shadow-medium);
    transform: translateY(-2px);
}

/* ========================================
   头部区域 - 优化后的Logo
   ======================================== */
.header {
    text-align: center;
    padding: 24px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-box {
    position: relative;
    background: linear-gradient(135deg, #ffe9a6, #dba640 55%, #a96e1e);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 193, 75, 0.35), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        /* box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4), 0 0 40px rgba(255, 107, 107, 0.2); */
    }

    50% {
        transform: translateY(-3px) scale(1.02);
        /* box-shadow: 0 10px 30px rgba(238, 90, 36, 0.5), 0 0 60px rgba(255, 107, 107, 0.3); */
    }
}

.logo-text-4cc {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.logo-text {
    font-size: 26px;
    font-weight: 600;
    background: linear-gradient(180deg, #fff0b9, #dba744, #b27a27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(39, 174, 96, 0.3));
}

/* ========================================
   热搜栏
   ======================================== */
.hot-search {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e1a13, #100e0b);
    border: 1px solid rgba(217, 164, 65, 0.65);
    box-shadow: 0 0 20px rgba(217, 164, 65, 0.15);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-light);
}

.hot-tag {
    color: #241707;
    background: linear-gradient(135deg, #ffe8a0, #d8a03c);
    box-shadow: 0 4px 15px rgba(218, 164, 65, 0.3);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    margin-right: 14px;
    flex-shrink: 0;
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hot-content {
    flex: 1;
    color: #c9b991;
    font-size: 14px;
    white-space: nowrap;
}

/* ========================================
   日期显示
   ======================================== */
.date-display {
    text-align: center;
    padding: 8px 18px;
    color: #ffdf91;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ========================================
   快捷导航
   ======================================== */
.quick-nav {
    padding: 16px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nav-item {
    color: #f5e6c5;
    background: linear-gradient(145deg, #383025, #211c14);
    border: 1px solid rgba(217, 164, 65, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    color: #ffdf91;
    border-color: #ffdf91;
    background: linear-gradient(145deg, #51402a, #2c2111);
    box-shadow: 0 0 20px rgba(217, 164, 65, 0.25);
    transform: translateY(-3px);
}

/* ========================================
   分区标题
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(217, 164, 65, 0.2);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffdf91;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ffe9a6, #c58b2e);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.section-action {
    font-size: 13px;
    color: var(--accent-blue);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.1);
}

.section-action:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.2);
}

/* ========================================
   实用酷站
   ======================================== */
.sites-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-row {
    display: grid;
    grid-template-columns: 55px 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(217, 164, 65, 0.25);
    transition: var(--transition);
}

.site-row:hover {
    background: rgba(52, 152, 219, 0.03);
    margin: 0 -18px;
    padding: 12px 18px;
}

.site-row:last-child {
    border-bottom: none;
}

.category-label {
    color: #241707;
    background: linear-gradient(135deg, #ffe7a0, #c58b2e);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.site-link {
    color: #c9b991;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    padding: 6px 4px;
    border-radius: 4px;
}

.site-link:hover {
    color: #ffdf91;
    background: rgba(52, 152, 219, 0.08);
}

/* ========================================
   实用工具
   ======================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tool-item {
    background: linear-gradient(145deg, #383025, #211c14);
    border: 1px solid rgba(217, 164, 65, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 10px;
    color: #d9a441;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tool-item:hover {
    color: #ffdf91;
    border-color: #ffdf91;
    background: linear-gradient(145deg, #51402a, #2c2111);
    box-shadow: 0 0 20px rgba(217, 164, 65, 0.25);
    transform: translateY(-3px);
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 380px) {
    .container {
        padding: 12px;
    }

    .logo-box {
        padding: 8px 16px;
    }

    .logo-text-4cc {
        font-size: 26px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-item {
        padding: 12px 6px;
        font-size: 13px;
    }

    .site-row {
        grid-template-columns: 45px 1fr 1fr 1fr;
    }

    .category-label {
        font-size: 11px;
        padding: 3px 6px;
    }

    .site-link {
        font-size: 12px;
    }
}

@media (min-width: 481px) {
    .container {
        padding: 28px;
    }

    .card {
        padding: 22px;
        border-radius: 16px;
    }

    .nav-grid {
        gap: 14px;
    }

    .nav-item {
        padding: 16px 14px;
        font-size: 15px;
    }

    .tools-grid {
        gap: 14px;
    }

    .tool-item {
        padding: 16px 14px;
        font-size: 14px;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    background: linear-gradient(145deg, #29231a, #100e0b 70%);
    border: 1px solid #d9a441;
    box-shadow: 0 0 25px rgba(217, 164, 65, 0.12), inset 0 1px 15px rgba(255, 215, 130, 0.06);
}

.quick-nav {
    animation-delay: 0.1s;
}

.my-favorites {
    animation-delay: 0.2s;
}

.cool-sites {
    animation-delay: 0.3s;
}

.useful-tools {
    animation-delay: 0.4s;
}

.header {
    animation: fadeInUp 0.5s ease forwards;
}

.hot-search {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c1c1c1 0%, #a8a8a8 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a8a8a8 0%, #909090 100%);
}

/* 选择文本样式（虽然被禁用但保留） */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: var(--text-primary);
}