/**
 * UniTp商城 - 现代化样式文件
 * 用于PC端页面美化
 * 遵循样式隔离原则，不修改原有样式表
 */

/* ============================================
   首页样式 (index.html)
   ============================================ */

/* Hero Section - 首页横幅 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/home/images/hero-bg.jpg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

.hero-buttons .layui-btn {
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 50px;
    margin-right: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #fff;
    color: #667eea;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #667eea;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Feature Cards - 功能特性卡片 */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    height: auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Showcase Section - 功能展示区域 */
.showcase-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-title-main {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-main h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title-main p {
    font-size: 18px;
    color: #666;
}

.showcase-menu {
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.showcase-menu-item {
    padding: 15px 20px;
    font-size: 15px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.showcase-menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.showcase-menu-item.active {
    border-left-color: #667eea;
    background: #f8f9fa;
    color: #667eea;
}

.showcase-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.showcase-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.showcase-card p {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Technology Cards - 技术特性卡片 */
.tech-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    height: auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.tech-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.tech-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Scenario Cards - 应用场景卡片 */
.scenario-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: auto;
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.scenario-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scenario-content {
    padding: 25px;
}

.scenario-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.scenario-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Advantage Cards - 核心优势卡片 */
.advantage-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.advantage-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.advantage-number {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.advantage-card p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
}

/* ============================================
   登录/注册页面样式
   ============================================ */

/* Login Page */
.login-wrapper,
.register-wrapper {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before,
.register-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/home/images/auth-bg.jpg') center/cover;
    opacity: 0.1;
}

.login-panel,
.register-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.register-panel {
    max-width: 600px;
}

.login-title,
.register-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h2,
.register-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-title p,
.register-title p {
    color: #666;
    font-size: 14px;
}

.layui-tab-title {
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.layui-tab-title li {
    font-size: 16px;
    font-weight: 500;
}

.login-wrapper .layui-form-item,
.register-wrapper .layui-form-item {
    margin-bottom: 20px;
}

.register-wrapper .layui-form-item {
    margin-bottom: 18px;
}

.login-wrapper .layui-input,
.register-wrapper .layui-input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0 15px;
    transition: all 0.3s;
}

.login-wrapper .layui-input:focus,
.register-wrapper .layui-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.login-btn,
.register-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn:hover,
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102,126,234,0.3);
}

.codeImage {
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.codeImage:hover {
    opacity: 0.8;
}

.layui-word-aux {
    color: #999;
    font-size: 12px;
    padding-top: 5px;
}

/* ============================================
   授权查询页面样式
   ============================================ */

.auth-page-wrapper {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/home/images/check-auth-bg.jpg') center/cover;
    opacity: 0.1;
}

.auth-container {
    position: relative;
    z-index: 2;
}

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

.auth-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.auth-search-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #667eea;
    padding-left: 15px;
    line-height: 1.2;
}

.auth-search-input {
    border-radius: 8px;
    height: 50px;
    transition: all 0.3s;
    border: 2px solid #e6e6e6;
    font-size: 15px;
}

.auth-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.auth-search-btn {
    height: 50px;
    margin-left: 10px;
    border-radius: 8px;
    padding: 0 30px;
    font-size: 15px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.auth-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102,126,234,0.3);
}

.auth-download-btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    border: 2px solid #667eea;
    color: #667eea;
    background: #fff;
}

.auth-download-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.auth-download-btn i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.auth-info-box {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    min-height: 150px;
    transition: all 0.3s;
}

.auth-info-placeholder {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
}

.layui-input-group {
    display: flex !important;
    align-items: center;
}

.layui-input-group .layui-input {
    flex: 1;
}

.layui-input-group .layui-input-suffix {
    flex-shrink: 0;
}

.auth-info-item {
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}

.auth-info-item:last-child {
    border-bottom: none;
}

.auth-info-item strong {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.auth-feature-cards {
    margin-top: 40px;
}

.auth-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.auth-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.auth-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.auth-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   论坛页面样式
   ============================================ */

.forum-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.forum-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/home/images/forum-bg.jpg') center/cover;
    opacity: 0.1;
}

.forum-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.forum-tabs {
    display: flex;
    gap: 10px;
}

.forum-tab {
    padding: 10px 25px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.forum-tab:hover {
    background: rgba(255,255,255,0.3);
}

.forum-tab.active {
    background: #fff;
    color: #667eea;
}

.forum-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    margin-top: 10px;
}

.qq-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.qq-group:hover {
    background: rgba(255,255,255,0.3);
}

.qq-group img {
    width: 30px;
    height: 30px;
}

.post-btn {
    padding: 10px 25px;
    background: #fff;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.forum-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.panel-title {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-list li {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
}

.forum-list li:hover {
    background: #f8f9fa;
}

.forum-list li:last-child {
    border-bottom: none;
}

.forum-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 15px;
}

.forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-item-content {
    margin-left: 65px;
}

.forum-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.forum-item-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.forum-item-title a:hover {
    color: #667eea;
}

.forum-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

.forum-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.forum-item-meta a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.forum-item-meta a:hover {
    color: #667eea;
}

.forum-item-meta i {
    margin-right: 5px;
}

.fly-none {
    padding: 60px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================
   Header样式
   ============================================ */

.modern-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102,126,234,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    height: 45px;
}

.logo-text {
    margin-left: 12px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(102,126,234,0.1);
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.nav-link i {
    margin-right: 6px;
    font-size: 18px;
}

/* ============================================
   Footer样式
   ============================================ */

.modern-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px auto;
    max-width: 800px;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-copyright a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: rgba(102,126,234,0.8);
    transform: translateY(-3px);
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .forum-banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .forum-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .forum-actions {
        width: 100%;
        justify-content: center;
    }
}
