/**
 * 588jl Theme Styles
 * Prefix: w5672-
 * Colors: #2C3E50 | #2F2F2F | #95A5A6
 */

/* CSS Variables */
:root {
    --w5672-primary: #2C3E50;
    --w5672-secondary: #2F2F2F;
    --w5672-accent: #95A5A6;
    --w5672-light: #ECF0F1;
    --w5672-dark: #1a252f;
    --w5672-text: #2c3e50;
    --w5672-text-light: #7f8c8d;
    --w5672-white: #ffffff;
    --w5672-gradient: linear-gradient(135deg, #2C3E50 0%, #2F2F2F 100%);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--w5672-text);
    background-color: var(--w5672-light);
    min-height: 100vh;
}

/* Container */
.w5672-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.w5672-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.w5672-header {
    position: sticky;
    top: 0;
    background: var(--w5672-gradient);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px 0;
}

.w5672-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w5672-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--w5672-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.w5672-logo i {
    font-size: 28px;
}

.w5672-header-buttons {
    display: flex;
    gap: 10px;
}

.w5672-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.w5672-btn-primary {
    background: var(--w5672-accent);
    color: var(--w5672-white);
}

.w5672-btn-secondary {
    background: transparent;
    color: var(--w5672-white);
    border: 2px solid var(--w5672-accent);
}

.w5672-btn:hover,
.w5672-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.w5672-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w5672-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.w5672-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--w5672-primary);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.w5672-mobile-menu.w5672-menu-open {
    left: 0;
}

.w5672-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w5672-menu-overlay.w5672-menu-open {
    opacity: 1;
    visibility: visible;
}

.w5672-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--w5672-white);
    font-size: 28px;
    cursor: pointer;
}

.w5672-menu-nav {
    list-style: none;
}

.w5672-menu-nav li {
    margin-bottom: 5px;
}

.w5672-menu-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--w5672-white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.w5672-menu-nav a:hover {
    background: var(--w5672-secondary);
}

/* Main Content */
main {
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 40px;
    }
}

/* Hero Section */
.w5672-hero {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.w5672-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section */
.w5672-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--w5672-white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.w5672-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--w5672-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5672-section-title i {
    color: var(--w5672-accent);
}

/* Grid */
.w5672-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.w5672-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Card */
.w5672-card {
    background: var(--w5672-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.w5672-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.w5672-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.w5672-card-title {
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--w5672-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom Navigation */
.w5672-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w5672-primary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (min-width: 769px) {
    .w5672-bottom-nav {
        display: none;
    }
}

.w5672-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--w5672-white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
}

.w5672-nav-btn i,
.w5672-nav-btn svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.w5672-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

.w5672-nav-btn:hover,
.w5672-nav-btn:active {
    background: var(--w5672-secondary);
}

.w5672-nav-btn.active {
    color: var(--w5672-accent);
}

.w5672-nav-btn.w5672-touch-active {
    transform: scale(0.95);
}

/* Footer */
.w5672-footer {
    background: var(--w5672-secondary);
    color: var(--w5672-accent);
    padding: 30px 0 80px;
    margin-top: 40px;
}

@media (min-width: 769px) {
    .w5672-footer {
        padding-bottom: 30px;
    }
}

.w5672-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.w5672-footer-links a {
    color: var(--w5672-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.w5672-footer-links a:hover {
    color: var(--w5672-white);
}

.w5672-footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.w5672-partners {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.w5672-partner-logo {
    width: 80px;
    height: 40px;
    background: var(--w5672-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--w5672-primary);
}

/* Content Elements */
.w5672-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--w5672-text);
}

.w5672-content h2 {
    font-size: 1.4rem;
    color: var(--w5672-primary);
    margin: 25px 0 15px;
    font-weight: 700;
}

.w5672-content h3 {
    font-size: 1.2rem;
    color: var(--w5672-primary);
    margin: 20px 0 10px;
    font-weight: 600;
}

.w5672-content p {
    margin-bottom: 15px;
}

.w5672-content ul,
.w5672-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.w5672-content li {
    margin-bottom: 8px;
}

.w5672-content a {
    color: var(--w5672-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.w5672-content a:hover {
    color: var(--w5672-accent);
    text-decoration: underline;
}

.w5672-content strong,
.w5672-content b {
    color: var(--w5672-primary);
    font-weight: 700;
}

.w5672-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--w5672-primary);
    color: var(--w5672-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.w5672-cta:hover {
    background: var(--w5672-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: var(--w5672-white);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .w5672-menu-toggle {
        display: block;
    }

    .w5672-header-buttons {
        display: none;
    }

    .w5672-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 360px) {
    .w5672-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
