/* css/publicStyle.css */
:root {
    --primary-color: #0056b3; /* Professional Blue - same as code.html */
    --primary-dark: #003d82;
    --primary-light: #e3f2fd;
    --secondary-color: #d32f2f; /* Accent Red - same as code.html */
    --secondary-light: #ffebee;
    --text-main: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-body: #f3f4f6; /* Slate-100 */
    --bg-card: #ffffff;
    --bg-dark: #1e293b; /* Slate-800 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-base: all 0.3s ease;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1504px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.fl { float: left; }
.fr { float: right; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.p-20 { padding: 20px; }

/* Card Utility - Modern Style */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Section Title with Left Border */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 20px;
}

.section-title.secondary {
    border-left-color: var(--secondary-color);
}

/* Gradient Cards */
.gradient-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.gradient-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gradient-card.blue {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.gradient-card.orange {
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.gradient-card.cyan {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Element UI overrides */
.el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
}

.el-carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.el-carousel__indicators--horizontal {
    bottom: 16px;
}

.el-carousel__button {
    width: 24px;
    height: 4px;
    border-radius: 2px;
}

/* Dark Mode Styles */
html.dark {
    --text-main: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --bg-body: #111827;
    --bg-card: #1f2937;
    --bg-dark: #111827;
    --border-color: #374151;
    --border-light: #1f2937;
}

html.dark body {
    background-color: #111827;
    color: var(--text-main);
}

html.dark a {
    color: var(--text-main);
}

html.dark .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

html.dark .section-title {
    color: var(--text-main);
}
