/* style.css - 官方教務風格 */

:root {
    --primary-color: #008080;
    /* Teal for header */
    --link-color: #2196F3;
    --bg-color: #f5f5f5;
    --border-color: #e0e0e0;
    --text-main: #333;
    --text-light: #666;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Arial", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
header {
    width: 100%;
    background-color: #2c3e50;
    /* Official Dark Blue */
    color: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content img {
    height: 40px;
}

.header-content h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* Main Container */
main {
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    box-sizing: border-box;
}

.panel {
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Search Bar */
.search-bar {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

.search-bar button {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #006666;
}

/* Result Section */
.report-header {
    background-color: #eafaea;
    /* Light Green header like example */
    padding: 12px 20px;
    border-bottom: 1px solid #d0ebd0;
    color: #333;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-content {
    padding: 30px;
}

/* Grid Layout for Profile */
.profile-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-box {
    width: 150px;
    height: 200px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-box:hover::after {
    content: "更換照片";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 5px;
    text-align: center;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.label {
    color: #888;
    width: 80px;
    text-align: right;
    padding-right: 15px !important;
}

.value {
    color: #333;
    font-weight: 500;
}

/* Transcript Table */
.section-title {
    font-size: 16px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
    font-weight: bold;
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.grade-table th,
.grade-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: center;
}

.grade-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

/* ID Card Section */
.card-section {
    text-align: center;
    margin-top: 30px;
    background: #fdfdfd;
    padding: 20px;
    border: 1px dashed #ccc;
}

.card-section img {
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Action Buttons */
.actions {
    margin-top: 20px;
    text-align: right;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}