/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* 布局样式 */
.mobile-main {
    padding: 80px 20px 40px;
    max-width: 100%;
    min-height: 100vh;
}

/* 导航样式 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 20px;
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 30px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.menu-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-link.active {
    color: #6a5acd;
    font-weight: 500;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: -80px -20px 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 90%;
}

.hero-logo {
    height: 80px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 按钮样式 */
.cta-button, .plugin-button, .install-button, .load-more-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6a5acd;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .plugin-button:hover, .install-button:hover, .load-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

.plugin-button {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.install-button {
    padding: 8px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.install-button.installed {
    background-color: #4CAF50;
}

.load-more-button {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    font-size: 1rem;
    background-color: rgba(106, 90, 205, 0.2);
    border: 1px solid #6a5acd;
}

/* 卡片样式 */
.plugin-cards, .feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.plugin-card, .feature-card {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.plugin-card:hover, .feature-card:hover {
    transform: translateY(-5px);
}

.plugin-icon, .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: rgba(106, 90, 205, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-icon {
    font-size: 28px;
}

/* 插件页面样式 */
.plugins-main {
    padding-top: 40px;
}

.plugins-header {
    text-align: center;
    margin-bottom: 40px;
}

.plugins-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.search-box {
    margin-top: 20px;
    display: flex;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 20px;
    border-radius: 0 30px 30px 0;
    background: #6a5acd;
    color: white;
    border: none;
    cursor: pointer;
}

.all-plugins {
    margin-top: 40px;
}

.plugin-category {
    margin-bottom: 40px;
}

.plugin-category h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plugin-item {
    display: flex;
    align-items: center;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plugin-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
}

.plugin-details {
    flex: 1;
    margin-right: 15px;
}

.plugin-details h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.plugin-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.plugin-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 页脚样式 */
.mobile-footer {
    background-color: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #6a5acd;
    font-size: 1.1rem;
}

.footer-section p, .footer-section a {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 加载动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(106, 90, 205, 0.3);
    border-radius: 50%;
    border-top-color: #6a5acd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (min-width: 480px) {
    .plugin-cards, .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .plugin-cards, .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plugin-item {
        padding: 20px;
    }
}
