/* ===== DiscoverChina - Main Shared Styles ===== */
/* Used across all XunRui CMS templates */

/* ===== CSS VARIABLES ===== */
:root {
    --dark: #0f172a;
    --dark-light: #1e293b;
    --red: #e11d48;
    --red-hover: #be123c;
    --red-soft: #f43f5e;
    --orange: #f97316;
    --light-bg: #f8f9fa;
    --light-bg-alt: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green: #10b981;
    --blue: #3b82f6;
    --purple: #6366f1;
    --yellow: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --radius: 20px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    color: var(--red);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 520px;
}

.view-all {
    color: var(--red);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
    white-space: nowrap;
}

.view-all:hover {
    gap: 10px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--dark);
    color: var(--gray-300);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-left a,
.top-bar-left span {
    color: var(--gray-300);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a:hover {
    color: var(--white);
}

.top-bar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-right a {
    color: var(--gray-300);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a:hover {
    color: var(--white);
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: var(--gray-600);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    gap: 8px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    width: 140px;
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box span,
.search-icon {
    font-size: 16px;
    color: var(--gray-400);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

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

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--gray-100);
    color: var(--red);
}

.mobile-menu .btn-primary {
    text-align: center;
    margin-top: 12px;
}

/* ===== PAGE HERO ===== */
.page-hero {
    height: 360px;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.5) 100%),
                url('/static/skin/images/changcheng.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-hero-content {
    max-width: 720px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 44px;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.page-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.85);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span,
.breadcrumb .separator {
    color: rgba(255,255,255,0.5);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-200);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--red);
    color: var(--white);
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray-400);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-newsletter p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--red);
}

.newsletter-form button {
    padding: 10px 18px;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--red-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--gray-500);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ===== PAGINATION ===== */
.pageslist {
    padding: 8px 0 64px;
    background: var(--light-bg-alt);
}

.pageslist .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pageslist .pagination li {
    display: inline-flex;
}

.pageslist .pagination li a,
.pageslist .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.pageslist .pagination li a:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pageslist .pagination li.active a {
    background: var(--red);
    color: var(--white);
    cursor: default;
}

.pageslist .pagination li.disabled a,
.pageslist .pagination li.disabled span {
    color: var(--gray-400);
    background: var(--gray-100);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 14px;
}

.cta-section p {
    color: var(--gray-400);
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
}

.cta-btns,
.cta-buttons,
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    padding: 80px 0;
    background: var(--white);
}

.legal-inner {
    max-width: 860px;
    margin: 0 auto;
}

.last-updated {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 40px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

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

.legal-section h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

.legal-section ul {
    margin-left: 24px;
    margin-bottom: 14px;
}

.legal-section ul li {
    list-style: disc;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.legal-section a {
    color: var(--red);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1279px) {
    .nav-links,
    .nav-right .search-box,
    .nav-right .btn-primary {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .page-hero {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .cta-section h2 {
        font-size: 28px;
    }

    .legal-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .page-hero h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* flaot */
.floating-btn {
	position: fixed;right: 10px;top: 50%;
	transform: translateY(-50%);/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
	background: var(--red);color: white;padding: 15px 20px;
	border-radius: 50px;text-decoration: none;font-weight: 600;font-size: 14px;
	box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);transition: all 0.3s ease;
	z-index: 1000;display: flex;align-items: center;gap: 8px;
}
.floating-btn:hover {transform: translateY(-50%) translateX(-5px);box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);}
.floating-btn-icon {width: 20px;height: 20px;display: inline-block;}
/* shemei */
/* Social Share Icons - Minimal Version */
.social-share {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.social-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f5f5f5;
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-share a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Platform Colors on Hover */
.social-share a.facebook:hover {
	background: #1877f2;
	color: white;
}

.social-share a.twitter:hover {
	background: #000;
	color: white;
}

.social-share a.whatsapp:hover {
	background: #25d366;
	color: white;
}

.social-share a.linkedin:hover {
	background: #0a66c2;
	color: white;
}

.social-share a.pinterest:hover {
	background: #e60023;
	color: white;
}

.social-share a.email:hover {
	background: #ea4335;
	color: white;
}

.social-share svg {
	width: 18px;
	height: 18px;
}

/* Dark Version */
.social-share.dark a {
	background: #333;
	color: #fff;
}

.social-share.dark a:hover {
	opacity: 0.8;
}

/* Outline Version */
.social-share.outline a {
	background: transparent;
	border: 2px solid #ddd;
	color: #666;
}

.social-share.outline a:hover {
	border-color: currentColor;
}

/* Size Variants */
.social-share.small a {
	width: 30px;
	height: 30px;
}

.social-share.small svg {
	width: 15px;
	height: 15px;
}

.social-share.large a {
	width: 44px;
	height: 44px;
}

.social-share.large svg {
	width: 22px;
	height: 22px;
}
