/* =========================
   Global Styles
========================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #f4f6f9, #eef2f7);
    margin: 0;
    padding: 0;
    color: #333;
}

h1, h2 {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   Header (Tool Pages)
========================= */

header {
    text-align: center;
    padding: 50px 20px 30px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 700;
}

header p {
    color: #666;
}

/* =========================
   Card Sections (Tool Pages)
========================= */

.calculator,
.results,
.chart-section,
.explanation {
    background: white;
    max-width: 800px;
    margin: 25px auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* Chart spacing */

.chart-section h2 {
    margin-bottom: 20px;
}

.chart-section canvas {
    height: 400px !important;
}

/* =========================
   Form Elements
========================= */

textarea {
    width: 100%;
    height: 70px;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

button {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.results p {
    font-size: 16px;
    margin: 8px 0;
}

/* =========================
   Footer
========================= */

footer {
    text-align: center;
    padding: 60px 20px 30px;
    margin-top: 60px;
    font-size: 14px;
    color: #666;
}

footer a {
    color: #2563eb;
}

footer a:hover {
    text-decoration: underline;
}

/* =================================================
   ==========  TECH STYLE HOMEPAGE  =================
   ================================================= */

/* Hero Section */

.hero {
    text-align: center;
    padding: 110px 20px 60px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero p {
    color: #666;
    font-size: 17px;
}

/* 科技感渐变分割线 */

.hero-divider {
    width: 150px;
    height: 3px;
    margin: 25px auto 55px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #2563eb,
        #60a5fa,
        #2563eb,
        transparent
    );
}

/* Tool Grid */

.tool-grid {
    max-width: 1100px;
    margin: 0 auto 120px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* 科技感卡片 */

.tool-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 25px 55px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

/* Card Title */

.tool-card h2 {
    font-size: 23px;
    font-weight: 600;
    color: #111;
}

/* Card Description */

.tool-card p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

/* =========================
   Responsive
========================= */

@media (max-width: 600px) {

    .hero h1 {
        font-size: 32px;
    }

    .tool-card {
        padding: 25px;
        min-height: auto;
    }
}

