@charset 'UTF-8';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
}

body {
    background-color: #111;
    color: #eee;
    line-height: 1.7;
}

/* ===== Header ===== */
header {
    background-color: #000;
    border-bottom: 4px solid #ed1c24;
    padding: 25px 0 18px;
    text-align: center;
}

header h1 {
    font-size: 2.6rem;
    letter-spacing: 4px;
    color: #fff;
}

header h1 span {
    color: #ed1c24;
}

header .slogan {
    margin-top: 6px;
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 2px;
}

/* ===== Nav ===== */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: #1a1a1a;
    border-bottom: 2px solid #ed1c24;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: #ddd;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 16px 28px;
    transition: 0.25s;
}

nav ul li a:hover {
    background-color: #ed1c24;
    color: #fff;
}

/* ===== Main ===== */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.sectitle {
    font-size: 2rem;
    color: #ed1c24;
    border-left: 6px solid #ed1c24;
    padding-left: 14px;
    margin-bottom: 24px;
}

section p {
    margin-bottom: 14px;
    color: #ccc;
}

/* ===== Hero (home) ===== */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #2a0000, #000);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 70px 20px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 16px;
}

.hero h2 span {
    color: #ed1c24;
}

.hero p {
    color: #bbb;
    max-width: 720px;
    margin: 0 auto;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1 1 280px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: 4px solid #ed1c24;
    border-radius: 8px;
    padding: 24px;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #ed1c24;
}

.card h3 {
    color: #ed1c24;
    margin-bottom: 10px;
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    background-color: #000;
}

/* ===== Product images ===== */
.showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.showcase figure {
    flex: 1 1 300px;
    max-width: 340px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.showcase figure img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background-color: #000;
}

.showcase figcaption {
    padding: 12px;
    color: #ddd;
    font-weight: bold;
}

.feature {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

/* ===== Timeline (history) ===== */
.timeline {
    border-left: 3px solid #ed1c24;
    margin-left: 12px;
    padding-left: 28px;
}

.timeline .event {
    position: relative;
    margin-bottom: 34px;
}

.timeline .event::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 4px;
    width: 14px;
    height: 14px;
    background-color: #ed1c24;
    border-radius: 50%;
}

.timeline .year {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.timeline .event h3 {
    color: #ed1c24;
    margin: 4px 0 6px;
}

/* ===== Table (cpu / gpu) ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #1a1a1a;
}

table th, table td {
    border: 1px solid #333;
    padding: 12px 16px;
    text-align: left;
}

table th {
    background-color: #ed1c24;
    color: #fff;
}

table tr:nth-child(even) td {
    background-color: #161616;
}

/* ===== Info ===== */
.infobox {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 26px;
    margin-bottom: 24px;
}

.infobox h3 {
    color: #ed1c24;
    margin-bottom: 10px;
}

.infobox table th {
    background-color: #2a2a2a;
    width: 160px;
}

/* ===== Footer ===== */
footer {
    background-color: #000;
    border-top: 3px solid #ed1c24;
    text-align: center;
    padding: 22px 10px;
    color: #888;
    font-size: 0.9rem;
    margin-top: 50px;
}
