/* 首页公共样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f5f3ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}

.desktop-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: white;
    background: rgba(255,255,255,0.2);
}

.desktop-nav a.btn-login {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.desktop-nav a.btn-login:hover {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    margin-right: 8px;
}

.user-info .username {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.user-info .balance { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; font-size: 11px; color: white; }

/* 菜单包装器 */
.menu-wrapper { position: relative; }

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #1e40af;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu a:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.dropdown-menu a:hover i {
    transform: scale(1.1);
}

.dropdown-menu a i {
    font-size: 16px;
    color: #3b82f6;
    transition: transform 0.2s ease;
    width: 20px;
    text-align: center;
}

.dropdown-menu .menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e7ff, transparent);
    margin: 4px 0;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255,255,255,0.25);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.hamburger.active {
    background: rgba(255,255,255,0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.show {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.show .mobile-nav {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: #f8f9fa;
    color: #3b82f6;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 14px;
    color: #64748b;
}

/* Hero区域 */
.hero {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.hero h1 {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
}

.hero .btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-weight: 500;
}

.hero .btn i {
    font-size: 18px;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
}

.hero .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.hero .btn-success {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.hero .btn-success:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.hero .btn-warning {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
}

.hero .btn-warning:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.hero .btn-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
}

.hero .btn-info:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* 区块 */
.section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.section-title {
    font-size: 18px;
    color: #3b82f6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeafe;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #3b82f6;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.08);
    margin-bottom: 20px;
}

/* 验证按钮 */
.verify-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 16px !important;
    width: 100%;
}

.verify-btn:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* 结果区域 */
.result-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.result-fail {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.result-icon {
    margin-bottom: 15px;
}

.result-icon i {
    font-size: 80px !important;
}

.result-success .result-icon i {
    color: #22c55e;
}

.result-fail .result-icon i {
    color: #ef4444;
}

.result-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-success .result-title {
    color: #15803d;
}

.result-fail .result-title {
    color: #b91c1c;
}

.result-message {
    font-size: 14px;
    color: #64748b;
}

/* 详情 */
.license-detail {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.license-detail h4 {
    font-size: 16px;
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-size: 13px;
}

.detail-value {
    color: #1e40af;
    font-size: 14px;
    font-weight: 500;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }
    
    .header .logo {
        font-size: 20px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .container,
    .container-narrow {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
}
