/*
Theme Name: AI-MST Semiconductor Platform
Theme URI: https://mst-sg.com/ai-mst
Author: MST Digital Team
Author URI: https://mst-sg.com
Description: Community-driven AI semiconductor manufacturing theme for MST
Version: 0.4.0
Text Domain: ai-mst
License: Private
*/

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --bg-main: #f8fafc;
    --bg-section: #e2e8f0;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

.primary-nav .menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.primary-nav .menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}

.primary-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.primary-nav .menu a:hover::after,
.primary-nav .menu .current-menu-item a::after {
    width: 100%;
}

/* ========== HERO ========== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: none;
}

.highlight {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.hero-visual-inner {
    margin-top: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-light);
    font-weight: 700;
}

.hero-stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.section.alt {
    background: var(--bg-section);
}

.section-bg-decoration {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section-bg-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ========== PRODUCT CARDS ========== */
.matrix-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.matrix-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.matrix-preview-card::after {
    content: '查看详情 →';
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.matrix-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-light);
}

.matrix-preview-card:hover::after {
    opacity: 1;
}

.preview-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-bottom: 1px solid var(--border);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 32px;
    transition: transform 0.3s;
}

.matrix-preview-card:hover .preview-image img {
    transform: scale(1.05);
}

.matrix-preview-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 24px 12px;
}

.preview-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 24px 16px;
}

.preview-features {
    list-style: none;
    padding: 0 24px 24px;
}

.preview-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.preview-features li::before {
    content: '→ ';
    color: var(--primary-light);
    margin-right: 8px;
}

/* ========== CASE CARDS ========== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.case-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.case-project {
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.case-result {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== COMMUNITY CARDS ========== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.community-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.community-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.community-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.community-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.community-card .link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.wechat-qr {
    margin: 20px 0;
    text-align: center;
}

.wechat-qr img {
    max-width: 200px;
    border-radius: 8px;
}

/* ========== INSIGHTS ========== */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.insight-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.insight-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.insight-card h3 a:hover {
    color: var(--primary);
}

.insight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.insight-card .link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== PRODUCT CENTER PAGE ========== */
.products-detailed {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.product-detail-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.product-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-detail-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-detail-content h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.product-tagline {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0 0 32px 0;
}

.product-section {
    margin-top: 32px;
}

.product-section h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.product-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-section ul li {
    padding: 12px 0 12px 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .product-detail-image {
        height: 300px;
    }
}

/* ========== INSIGHTS ARCHIVE & SINGLE ========== */
.insight-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.insight-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.insight-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.insight-list-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-section);
}

.insight-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.insight-list-card:hover .insight-list-image img {
    transform: scale(1.05);
}

.insight-list-content {
    padding: 24px;
}

.insight-list-content h2,
.insight-list-content h4 {
    margin: 12px 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.insight-list-content h2 a,
.insight-list-content h4 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.insight-list-content h2 a:hover,
.insight-list-content h4 a:hover {
    color: var(--primary);
}

.insight-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0;
}

.insight-single .insight-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.insight-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.insight-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.insight-featured-image {
    background: var(--bg-section);
    padding: 0;
}

.insight-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.insight-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.insight-content h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.insight-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 32px 0 16px 0;
}

.insight-content p {
    margin: 16px 0;
}

.insight-content ul,
.insight-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.insight-content li {
    margin: 8px 0;
}

.insight-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.insight-footer {
    max-width: 800px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-section);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.insight-share {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.related-insights {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-insights h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text-main);
}

/* ========== ABOUT & CONTACT PAGES ========== */
.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 48px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
}

.vision-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 0 16px 0;
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 12px 0;
}

.product-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.product-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.product-category h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 0 0 16px 0;
}

.product-category > p {
    color: var(--text-secondary);
    margin: 8px 0;
}

.product-category ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.product-category ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-category ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.team-section {
    margin: 32px 0;
}

.team-section > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.team-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.team-card h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.business-model {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.model-item {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 24px;
}

.model-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.model-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.company-motto {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary);
    padding: 40px;
    border-radius: 12px;
    margin: 48px 0;
    text-align: center;
}

.company-motto h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0 0 16px 0;
}

.company-motto p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 12px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.contact-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.cooperation-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.coop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.coop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.coop-card h3 {
    color: var(--text-main);
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}

.coop-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.team-intro {
    background: var(--bg-section);
    padding: 32px;
    border-radius: 12px;
    margin: 32px 0;
}

.team-intro > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.team-highlights {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.team-highlights li {
    padding: 16px 0 16px 40px;
    position: relative;
    line-height: 1.8;
    color: var(--text-secondary);
}

.team-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.contact-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.contact-cta h2 {
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 8px 0;
}

.cta-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== COMMUNITY PAGE ========== */
.community-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.community-hero h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.community-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0 0 16px 0;
}

.community-hero > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.community-stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 40px;
    border-radius: 16px;
}

.community-stat {
    text-align: center;
}

.stat-big-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.join-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.join-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.join-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 0 0 16px 0;
}

.join-card > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0;
}

.wechat-qr-placeholder {
    margin: 24px 0;
    min-height: 200px;
    background: var(--bg-section);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr-placeholder img {
    max-width: 200px;
    border-radius: 8px;
}

.join-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.join-link {
    margin: 24px 0;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 24px auto;
}

.subscribe-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--primary);
}

.leaderboard {
    max-width: 800px;
    margin: 32px auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-light);
}

.rank-badge {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.rank-badge.gold {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.rank-badge.silver {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.3));
}

.rank-badge.bronze {
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.3));
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contribution {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.community-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.community-cta h2 {
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.community-cta > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 32px;
}

/* ========== SUPPORT PAGE ========== */
.support-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 0 0 8px 0;
}

.service-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px 0;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.service-card ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.commitment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.commitment-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.commitment-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.commitment-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.support-contact {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.support-contact-item {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}

.support-contact-item:last-child {
    border-bottom: none;
}

.support-contact-item strong {
    color: var(--text-main);
    margin-right: 8px;
}

.support-contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.support-contact-item a:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    color: #e2e8f0;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    height: 40px;
    width: auto;
}

.footer-brand strong {
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 0.85rem;
    flex-wrap: wrap;
    text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .primary-nav.active {
        display: block;
    }

    .primary-nav .menu {
        flex-direction: column;
        padding: 20px 0;
    }

    .primary-nav .menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .primary-nav .menu a {
        display: block;
        padding: 15px 30px;
        font-size: 16px;
    }

    .primary-nav .menu a::after {
        display: none;
    }

    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* AI Design Platform Page Styles */
.ai-platform-hero {
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-platform-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.ai-platform-hero .container {
    position: relative;
    z-index: 1;
}

.ai-platform-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.platform-tagline {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.platform-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.platform-cta .btn-primary {
    background: white;
    color: #0052CC;
}

.platform-cta .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.platform-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.platform-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Process Steps */
.platform-process {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0052CC 25%, #0052CC 75%, transparent);
    z-index: 0;
}

.process-step {
    background: white;
    border-radius: 15px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.15);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #0052CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    font-size: 60px;
    margin: 20px 0;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.process-step p {
    color: #666;
    font-size: 15px;
}

/* Platform Advantages */
.platform-advantages {
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.advantage-green .advantage-icon {
    background: #E8F5E9;
}

.advantage-orange .advantage-icon {
    background: #FFF3E0;
}

.advantage-purple .advantage-icon {
    background: #F3E5F5;
}

.advantage-blue .advantage-icon {
    background: #E3F2FD;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
}

/* Platform Features */
.platform-features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 32px;
    border-left: 4px solid #0052CC;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.15);
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Platform Industries */
.platform-industries {
    padding: 60px 0;
}

.industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.industry-tag {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.industry-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-orange {
    background: #FFF3E0;
    color: #FF9800;
}

.tag-blue {
    background: #E3F2FD;
    color: #0052CC;
}

.tag-pink {
    background: #FCE4EC;
    color: #E91E63;
}

.tag-purple {
    background: #F3E5F5;
    color: #9C27B0;
}

.tag-teal {
    background: #E0F2F1;
    color: #009688;
}

.tag-yellow {
    background: #FFF8E1;
    color: #FFC107;
}

/* Platform Upload Section */
.platform-upload {
    padding: 80px 0;
}

.upload-box {
    background: linear-gradient(135deg, #F0F8FF 0%, #E3F2FD 100%);
    border: 2px dashed #0052CC;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #003D99;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.upload-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.upload-box h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.upload-box > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

.upload-note {
    margin-top: 24px;
    font-size: 14px;
    color: #999;
}

/* Responsive Design for AI Platform */
@media (max-width: 1024px) {
    .process-steps,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .ai-platform-hero h1 {
        font-size: 32px;
    }

    .platform-tagline {
        font-size: 16px;
    }

    .platform-cta {
        flex-direction: column;
    }

    .process-steps,
    .advantages-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .industries-tags {
        justify-content: flex-start;
    }
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.page-hero h1 {
    color: white;
    margin: 0;
    font-size: 36px;
}

/* Community Page Styles */
.community-page {
    background: white;
}

.community-intro {
    padding: 40px 0;
    text-align: center;
    background: #f8f9fa;
}

.community-intro h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.community-desc {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.community-portal {
    padding: 60px 0;
    background: white;
}

.community-stats {
    padding: 60px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0052CC;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

.community-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    color: white;
}

.community-cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
}

.community-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: #0052CC;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.portal-card {
    background: white;
    border-radius: 15px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.2);
}

.portal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.portal-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.portal-card p {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.portal-link {
    color: #0052CC;
    font-weight: 600;
    font-size: 16px;
}

.portal-card:hover .portal-link {
    text-decoration: underline;
}

.features-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-box {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

/* BuddyPress Override Styles */
#buddypress {
    background: white;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#buddypress .bp-feedback {
    background: #f8f9fa;
    border-left: 4px solid #0052CC;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#buddypress .bp-feedback p {
    margin: 0;
    color: #666;
}

#buddypress #subnav {
    margin-bottom: 20px;
}

#buddypress div.dir-search {
    margin-bottom: 20px;
}

#buddypress select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#buddypress .bp-subnavs {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

#buddypress ul.activity-list {
    margin-top: 0;
}

#buddypress .activity-list {
    list-style: none;
    padding: 0;
}

#buddypress .activity-list li {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#buddypress .activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

#buddypress .activity-avatar {
    margin-right: 16px;
}

#buddypress .activity-content {
    padding: 16px 0;
}

#buddypress .activity-meta {
    color: #999;
    font-size: 14px;
}

#buddypress #item-nav {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

#buddypress #item-nav ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#buddypress #item-nav li a {
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#buddypress #item-nav li.current a,
#buddypress #item-nav li a:hover {
    background: #0052CC;
    color: white;
}

#buddypress .item-list-tabs {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
}

#buddypress .item-list-tabs li {
    display: inline-block;
    margin-right: 8px;
}

#buddypress .item-list-tabs li a {
    padding: 8px 16px;
    border-radius: 6px;
    background: #f5f7fa;
    transition: all 0.3s ease;
}

#buddypress .item-list-tabs li.selected a,
#buddypress .item-list-tabs li a:hover {
    background: #0052CC;
    color: white;
}

/* BuddyPress Registration Page Styles - Commercial Grade */
.registration.register .page-hero {
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.registration.register .page-hero h1 {
    color: white;
    text-align: center;
    font-size: 32px;
    margin: 0;
}

.registration.register .section {
    background: #ffffff;
    padding: 0;
    margin-top: 40px;
}

#buddypress #register-page {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

#buddypress #register-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052CC 0%, #00A3FF 100%);
    border-radius: 16px 16px 0 0;
}

#buddypress #register-page > p {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
}

#buddypress #signup_form {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

#buddypress .register-section {
    margin-bottom: 30px;
}

#buddypress .register-section h2 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 24px;
    margin-top: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#buddypress .register-section:first-of-type h2 {
    margin-top: 0;
}

#buddypress #signup_form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    letter-spacing: -0.01em;
}

#buddypress #signup_form input[type="text"],
#buddypress #signup_form input[type="email"],
#buddypress #signup_form input[type="password"],
#buddypress .editfield input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    transition: all 0.15s ease;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
    background: white !important;
    color: #111827 !important;
}

#buddypress #signup_form input[type="text"]:focus,
#buddypress #signup_form input[type="email"]:focus,
#buddypress #signup_form input[type="password"]:focus,
#buddypress .editfield input[type="text"]:focus {
    border-color: #0052CC !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.08) !important;
}

#buddypress #signup_form .password-entry,
#buddypress #signup_form .password-entry-confirm {
    margin-bottom: 8px;
}

#buddypress #signup_form .password-strength {
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

#buddypress #signup_form .password-strength.strong {
    background: #E8F5E9;
    color: #4CAF50;
}

#buddypress #signup_form .password-strength.medium {
    background: #FFF3E0;
    color: #FF9800;
}

#buddypress #signup_form .password-strength.weak {
    background: #FFEBEE;
    color: #F44336;
}

#buddypress .submit {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

#buddypress #signup_form input[type="submit"] {
    background: #0052CC;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    margin-top: 0;
    letter-spacing: -0.01em;
}

#buddypress #signup_form input[type="submit"]:hover {
    background: #003D99;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

#buddypress .register-section > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

#buddypress #basic-details-section,
#buddypress #profile-details-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 30px;
}

#buddypress .editfield {
    margin-bottom: 0 !important;
}

#buddypress .editfield fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

#buddypress .editfield legend {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-size: 14px !important;
    padding: 0 !important;
    width: 100% !important;
    letter-spacing: -0.01em !important;
    float: none !important;
}

#buddypress .editfield input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

#buddypress .field-visibility-settings-notoggle,
.field-visibility-settings-notoggle,
p.field-visibility-settings-notoggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#buddypress .bp-required-field-label {
    color: #DC2626;
    font-weight: normal;
}

#buddypress .error {
    background: #FEF2F2;
    border-left: 3px solid #DC2626;
    color: #DC2626;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

#buddypress #register-page > p {
    display: none !important;
}

/* Responsive for Community Portal */
@media (max-width: 1024px) {
    .portal-grid,
    .features-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    #buddypress #signup_form {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .portal-grid,
    .features-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* BuddyPress Login Page Styles */
.login .page-hero {
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.login .page-hero h1 {
    color: white;
    text-align: center;
    font-size: 32px;
    margin: 0;
}

.login .section {
    background: #ffffff;
    padding: 0;
    margin-top: 40px;
}

#buddypress .bp-login-widget-user-login,
#buddypress form.bp-login-widget-user-login {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

#buddypress .bp-login-widget-user-login::before,
#buddypress form.bp-login-widget-user-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052CC 0%, #00A3FF 100%);
    border-radius: 16px 16px 0 0;
}

#buddypress .bp-login-widget-user-login label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    letter-spacing: -0.01em;
}

#buddypress .bp-login-widget-user-login input[type="text"],
#buddypress .bp-login-widget-user-login input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    transition: all 0.15s ease;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
    background: white !important;
    color: #111827 !important;
}

#buddypress .bp-login-widget-user-login input[type="text"]:focus,
#buddypress .bp-login-widget-user-login input[type="password"]:focus {
    outline: none;
    border-color: #0052CC !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.08) !important;
}

#buddypress .bp-login-widget-user-login input[type="submit"] {
    width: 100% !important;
    background: #0052CC !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease;
    margin-top: 12px !important;
}

#buddypress .bp-login-widget-user-login input[type="submit"]:hover {
    background: #003D99 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2) !important;
}

#buddypress .bp-login-widget-user-login .forgetmenot {
    margin-bottom: 20px;
}

#buddypress .bp-login-widget-user-login .forgetmenot label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    margin: 0;
}

#buddypress .bp-login-widget-user-login .forgetmenot input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px;
    margin-bottom: 0 !important;
}

.bp-login-widget-user-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.bp-login-widget-user-links a {
    color: #0052CC;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin: 0 8px;
}

.bp-login-widget-user-links a:hover {
    text-decoration: underline;
}
