/* 移动端可爱风格样式 */
@media (max-width: 768px) {
    /* 整体容器 */
    .container {
        background-color: #fef7ff;
    }
    
    /* 头部 */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
        background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
        border-radius: 0 0 20px 20px;
        margin: -15px -10px 25px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    h1 {
        font-size: 24px;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        font-weight: 600;
    }
    
    /* 导航栏 */
    .navbar {
        background-color: #ffffff;
        border-radius: 25px;
        padding: 15px;
        margin: 0 15px 30px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .navbar a {
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 20px;
        background-color: #f8f9fa;
        color: #666;
        font-weight: 500;
        transition: all 0.3s ease;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .navbar a:hover {
        background-color: #ffc1cc;
        color: #ffffff;
        transform: scale(1.05);
    }
    
    .navbar a.active {
        background-color: #ff6b8b;
        color: #ffffff;
    }
    
    /* 英雄区域 */
    .hero {
        padding: 40px 20px;
        margin: 0 15px 30px;
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        border-radius: 20px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        text-align: center;
    }
    
    .hero h2 {
        font-size: 22px;
        color: #2c3e50;
        margin-bottom: 15px;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    }
    
    .hero p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        max-width: 90%;
        margin: 0 auto;
        background-color: rgba(255,255,255,0.7);
        padding: 10px 15px;
        border-radius: 15px;
    }
    
    /* 功能卡片 */
    .features {
        gap: 20px;
        margin: 0 15px 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        border: 2px solid #f0f0f0;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .feature-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,107,139,0.1), transparent);
        transform: rotate(45deg);
        animation: shine 3s infinite;
    }
    
    @keyframes shine {
        0% { transform: translateX(-100%) rotate(45deg); }
        100% { transform: translateX(100%) rotate(45deg); }
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        border-color: #ff6b8b;
    }
    
    .feature-card h3 {
        font-size: 18px;
        color: #ff6b8b;
        margin-bottom: 15px;
        font-weight: 600;
        position: relative;
        z-index: 1;
    }
    
    .feature-card p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        position: relative;
        z-index: 1;
        background-color: rgba(255,255,255,0.9);
        padding: 10px;
        border-radius: 10px;
    }
    
    /* 功能卡片图标 */
    .feature-card:nth-child(1)::after {
        content: '🎨';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        z-index: 1;
    }
    
    .feature-card:nth-child(2)::after {
        content: '🔄';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        z-index: 1;
    }
    
    .feature-card:nth-child(3)::after {
        content: '📝';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        z-index: 1;
    }
    
    /* 图纸展示区域 */
    .blueprint-section {
        margin: 0 15px 30px;
    }
    
    .blueprint-section h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #2c3e50;
        font-size: 18px;
        font-weight: 600;
    }
    
    .blueprint-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .blueprint-card {
        padding: 12px;
        background-color: #ffffff;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
        min-width: 120px;
    }
    
    .blueprint-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    
    .blueprint-image {
        height: 120px;
        margin-bottom: 10px;
        border-radius: 10px;
        overflow: hidden;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
    }
    
    .blueprint-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blueprint-title {
        font-size: 12px;
        margin-bottom: 4px;
        font-weight: 500;
        color: #2c3e50;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .blueprint-author {
        font-size: 10px;
        color: #777;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        background-color: #f9f9f9;
        border-radius: 12px;
        grid-column: 1 / -1;
    }
    
    .empty-state h3 {
        margin-bottom: 10px;
        color: #2c3e50;
        font-size: 16px;
    }
    
    .empty-state p {
        color: #777;
        font-size: 14px;
    }
    
    /* 页脚 */
    footer {
        background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
        color: #ffffff;
        padding: 30px 20px;
        border-radius: 20px 20px 0 0;
        margin: 30px -10px -15px;
        text-align: center;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    }
    
    footer p {
        font-size: 14px;
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    
    /* 用户部分 */
    .user-section {
        gap: 10px;
        position: relative;
        z-index: 2;
    }
    
    .auth-links a {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .auth-links a:first-child {
        background-color: rgba(255,255,255,0.8);
        color: #ff6b8b;
    }
    
    .auth-links a:last-child {
        background-color: #ff6b8b;
        color: #ffffff;
    }
    
    .auth-links a:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .user-info {
        gap: 10px;
        background-color: rgba(255,255,255,0.8);
        padding: 8px 15px;
        border-radius: 25px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        color: #ff6b8b;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .logout-btn {
        background-color: #ff6b8b;
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .logout-btn:hover {
        background-color: #ff4776;
        transform: scale(1.05);
    }
    
    /* 蓝图弹窗样式 */
    .blueprint-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 15px;
    }
    
    .blueprint-modal-body {
        flex-direction: column;
    }
    
    .blueprint-modal-image {
        max-width: 100%;
    }
    
    .blueprint-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding: 10px;
        justify-content: center;
        background: transparent;
        border-top: none;
    }
    
    .action-btn {
        flex: none;
        padding: 10px;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        background: transparent;
    }
    
    .action-btn:hover {
        transform: scale(1.1);
    }
    
    .like-btn {
        background: transparent;
        color: #ff6b8b;
        border: none;
    }
    
    .like-btn:hover {
        background: transparent;
        color: #ff6b8b;
        transform: scale(1.1);
        box-shadow: none;
    }
    
    .download-btn {
        background: transparent;
        color: #3498db;
        border: none;
    }
    
    .download-btn:hover {
        background: transparent;
        color: #3498db;
        transform: scale(1.1);
        box-shadow: none;
    }
    
    .preview-btn {
        background: transparent;
        color: #27ae60;
        border: none;
    }
    
    .preview-btn:hover {
        background: transparent;
        color: #27ae60;
        transform: scale(1.1);
        box-shadow: none;
    }
}
