/* =========================
   GLOBAL (Nature + UI Depth Layer)
========================= */

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;   /* 关键：不再纯白 */
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 15px;
}

/* layout container */
.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   NAVBAR (Deep Blue Academic Style)
========================= */

.navbar {
    background: #0b1f3a;   /* 墨蓝核心 */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

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

.navbar h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.navbar a {
    color: white;
    margin-left: 16px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.navbar a:hover {
    opacity: 1;
    border-bottom: 1px solid rgba(255,255,255,0.8);
}

/* logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 40px;
    width: auto;
}

/* =========================
   HERO (soft card layer)
========================= */

.hero {
    margin-top: 30px;
    padding: 50px 20px;
    text-align: center;

    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.hero h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero p {
    font-size: 15px;
    color: #555;
    max-width: 750px;
    margin: auto;
}

.description {
    max-width: 750px;
    margin: 20px auto;
    color: #444;
    text-align: center;
}

/* =========================
   SECTION BASE STYLE
========================= */

section {
    margin: 40px auto;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    border-left: 3px solid #0b1f3a;
    padding-left: 10px;
}

/* =========================
   CARD SYSTEM (核心 UI depth)
========================= */

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* =========================
   NEWS SECTION
========================= */

.news-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.news-left {
    flex: 2;
}

.news-right {
    flex: 1;
}

/* news list */
.news {
    list-style: none;
    padding: 0;
}

.news li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.news span {
    font-weight: 600;
    margin-right: 8px;
    color: #0b1f3a;
}

/* =========================
   IMAGE SLIDER
========================= */

.floating-gallery {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.floating-gallery img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.floating-gallery img.active {
    opacity: 1;
}

/* =========================
   ACCESS SECTION
========================= */

.access-section p {
    color: #555;
    font-size: 14px;
}

/* =========================
   TABLE (academic clean)
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th {
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* =========================
   FOOTER (soft depth)
========================= */

footer {
    margin-top: 80px;
    padding: 25px 0;
    text-align: center;

    font-size: 13px;
    color: #666;

    background: #ffffff;
    border-top: 1px solid #eaeaea;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
https://brillianttt.github.io/itp-dft-homepage/index.html
    .news-section {
        flex-direction: column;
    }

    .hero {
        padding: 30px 15px;
    }

    .container {
        width: 92%;
    }
}

h3 {
    color: #a84739 !important;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.5px;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

h4 {
    color: white !important;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.5px;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
