* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
    background: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.header {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
}

.logo-img {
    max-height: 60px;
    flex-grow: 1;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.ipost {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
}

.post-tw {
    font-size: 12px;
    color: #666;
}

.web-title {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

.content {
    padding: 20px 15px;
}

h1 {
    font-size: 20px;
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a5d6a7;
}

.search-header {
    background: linear-gradient(to bottom, #a5d6a7, #81c784);
    padding: 15px;
    margin: -20px -15px 20px -15px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border-bottom: none;
}

.search-form {
    background: #f1f8e9;
    padding: 20px;
    border-radius: 4px;
}

.form-row {
    margin-bottom: 15px;
    font-size: 16px;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.label-col {
    width: 130px;
    padding-top: 10px;
    font-weight: bold;
}

.input-col {
    flex-grow: 1;
}

.input-col input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.captcha-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-input {
    width: 120px !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
}

.captcha-image {
    background: #fff;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.captcha-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    font-family: monospace;
}

.refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(to bottom, #fff, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.audio-btn {
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom, #ffb74d, #ff9800);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-top: 10px;
}

.search-btn:hover {
    background: linear-gradient(to bottom, #ffa726, #f57c00);
}

.error {
    color: #c62828;
    margin-top: 15px;
    text-align: center;
}

.notes {
    margin-top: 30px;
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.notes p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.tracking-info {
    display: flex;
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.tracking-label {
    width: 120px;
    font-weight: bold;
    background: #e8f5e9;
    padding: 8px 15px;
    text-align: center;
}

.tracking-value {
    flex-grow: 1;
    padding: 8px 15px;
    background: #fff;
}

.notice {
    background: #fff3e0;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9800;
}

.notice p {
    margin-bottom: 10px;
    color: #c62828;
}

.notice .link {
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}

.section-title {
    background: #e8f5e9;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 0;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.result-table th,
.result-table td {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.result-table th {
    background: #f1f8e9;
    font-weight: bold;
}

.result-table td {
    background: #fff;
}

.unit-blue {
    color: #1565c0;
}

.no-result {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #1565c0;
    text-decoration: none;
    font-size: 16px;
}

.back-link a:hover {
    text-decoration: underline;
}

.top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
