/* ========================================
   反派组织档案库 - 响应式样式
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .site-title {
        font-size: 3rem;
    }

    .entry-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备 (< 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    /* 头部区域 */
    .hero-section {
        padding: 2rem 0 2rem;
    }

    .site-title {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .site-definition {
        font-size: 1rem;
    }

    /* 椅子符号缩小 */
    .chairs-symbol {
        gap: 0.8rem;
    }

    .chair {
        width: 30px;
        height: 26px;
    }

    .chair::before {
        width: 22px;
        top: -6px;
    }

    /* 核心理念区 */
    .principle-item {
        padding: 1rem;
    }

    .principle-item p {
        font-size: 1rem;
    }

    /* 章节标题 */
    .section-title {
        font-size: 1.5rem;
    }

    /* 入口卡片单列布局 */
    .entry-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .entry-card {
        padding: 1.5rem;
    }

    /* 法律列表 */
    .law-item {
        padding: 0.8rem 1rem;
    }

    /* 页脚 */
    footer {
        padding: 1.5rem 1rem;
    }

    .footer-chairs {
        gap: 0.6rem;
    }

    .footer-chair {
        width: 25px;
        height: 20px;
    }

    .footer-chair::before {
        width: 18px;
        top: -5px;
    }

    .footer-quote {
        font-size: 0.9rem;
    }

    /* 引用块 */
    blockquote {
        padding: 0.8rem 1rem;
        margin: 1rem 0;
    }
}

/* 小屏手机 (< 480px) */
@media screen and (max-width: 480px) {
    .site-title {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .site-definition {
        font-size: 0.9rem;
    }

    .chairs-symbol {
        gap: 0.6rem;
    }

    .chair {
        width: 25px;
        height: 22px;
    }

    .chair::before {
        width: 18px;
        top: -5px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .entry-card h3 {
        font-size: 1.3rem;
    }

    .law-number {
        font-size: 0.9rem;
    }

    .law-text {
        font-size: 0.95rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .law-item:hover {
        border-left-color: transparent;
        background-color: var(--bg-secondary);
    }

    .law-item:active {
        border-left-color: var(--accent-red);
        background-color: #2a2a2a;
    }

    .entry-card:hover {
        transform: none;
    }

    .entry-card:active {
        transform: translateY(-1px);
    }
}

/* 浮动导航菜单响应式 */
@media screen and (max-width: 768px) {
    .floating-nav {
        bottom: 20px;
        right: 20px;
    }
    
    .nav-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .nav-menu {
        min-width: 180px;
        bottom: 60px;
    }
    
    .nav-menu-item {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .floating-nav {
        bottom: 15px;
        right: 15px;
    }
    
    .nav-toggle-btn {
        width: 46px;
        height: 46px;
    }
    
    .nav-menu {
        min-width: 160px;
        bottom: 55px;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .hero-section {
        border-bottom: 2px solid black;
    }

    .entry-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    footer {
        border-top: 1px solid #ccc;
    }
}
