/* =====================================================================
   Name080 新版面通用组件样式（components.css）
   由 layout/name080_2024 统一加载；用法见 doc/version/page-redesign-guide.md
   ===================================================================== */

/* ---------- 左侧导航：当前项高亮 ---------- */
.sidebar li.active > a {
    color: #71b32e;
    font-weight: bold;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
    border: 1px dashed #bce5f8;
    margin-bottom: 10px;
    border-radius: 4px;
}

.faq-item .faq-question {
    cursor: pointer;
    padding: 12px 15px;
    border-left: 5px solid #71b32e;
    color: #333;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .faq-question:hover {
    background-color: #f9f9f9;
}

.faq-item .faq-question .arrow {
    transition: transform 0.2s;
    color: #999;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(90deg);
}

.faq-item .faq-answer {
    display: none;
    padding: 15px;
    color: #333;
    border-top: 1px dashed #bce5f8;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-download {
    display: inline-block;
    margin-top: 8px;
    color: #030EAE;
    text-decoration: none;
}

.faq-download:hover {
    text-decoration: underline;
}

.answer-content {
    line-height: 1.8;
}

/* ---------- 统一表单 / 卡片（c-*） ---------- */
.c-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.c-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.c-info-item {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #fbfdf9, #f5faf0);
    border: 1px solid #edf4e6;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(113, 179, 46, 0.06);
}

.c-info-item > i {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6dc;
    color: #6dad2b;
    border-radius: 50%;
    font-size: 18px;
}

.c-info-item a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.c-info-item a:hover {
    color: #71b32e;
}

.c-tip {
    background: linear-gradient(180deg, #fbfdf8, #f6f9f2);
    border: 1px dashed #cfe6bb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}

.c-form-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    padding: 34px 38px 38px;
}

.c-field {
    margin-bottom: 22px;
}

.c-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.c-label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.c-label em {
    color: #e4393c;
    font-style: normal;
    margin-left: 2px;
}

.c-input,
.c-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    padding: 11px 14px;
    height: 36px;
    font-size: 15px;
    line-height: 24px;
    color: #333;
    background: #f7f8fa;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.c-input:focus,
.c-textarea:focus {
    outline: none;
    border-color: #8ecd4e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(142, 205, 78, 0.18);
}

.c-textarea {
    height: 140px;
    resize: vertical;
}

.c-form-actions {
    margin-top: 30px;
    text-align: center;
}

.c-submit {
    display: inline-block;
    border: 0;
    border-radius: 24px;
    padding: 12px 52px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #8ecd4e, #71b32e);
    box-shadow: 0 4px 14px rgba(113, 179, 46, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.c-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(113, 179, 46, 0.4);
}

/* ---------- 網址服務（domain 2026：index / tsf / certificate / loot） ---------- */
.d-sec {
    margin-bottom: 28px;
}

.d-sec-title {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 10px 14px;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #eee;
}

.d-sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 18px;
    background: #71b32e;
    border-radius: 2px;
}

.d-box {
    background: linear-gradient(180deg, #fbfdf8, #f6f9f2);
    border: 1px dashed #cfe6bb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}

.d-box ul,
.d-box ol {
    margin: 0 0 0 20px;
    padding: 0;
}

.d-box li {
    margin-bottom: 6px;
}

.d-box p {
    margin: 0 0 8px;
}

.d-note-red {
    background: linear-gradient(180deg, #fefbfb, #fdf4f4);
    border-color: #f3c5c6;
    color: #a43a3a;
}

.d-note-red strong {
    color: #c0392b;
}

.d-box .red,
.d-box li .red,
.d-box strong.red {
    color: #e4393c;
}

.d-warn-text {
    color: #e4393c;
    font-weight: 700;
    font-size: 15px;
    margin: 6px 0 0;
    line-height: 1.8;
}

.d-warn-text i {
    color: #e4393c;
}

.d-link {
    color: #8ecd4e;
    font-weight: 600;
}

.d-link:hover {
    color: #71b32e;
    text-decoration: underline;
}

.d-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.d-card-img {
    flex: 0 0 auto;
    width: 96px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.d-card-body {
    flex: 1 1 auto;
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}

.d-card-body p {
    margin: 0 0 10px;
}

.d-shot p {
    margin: 0 0 6px;
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

.d-shot-img {
    text-align: center;
    margin: 8px 0 18px;
}

.d-shot-img img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
}

.d-img-center {
    text-align: center;
    margin: 12px 0 18px;
}

.d-img-center img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
}

.d-float-img {
    float: right;
    margin: 0 0 12px 16px;
}

.d-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.d-logo-row a {
    display: inline-block;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 4px 6px;
    background: #fff;
    line-height: 0;
}

.d-logo-row img {
    width: 80px;
    height: 30px;
}

.d-form {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    padding: 26px 28px;
    margin-bottom: 28px;
}

.d-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.d-form-label {
    font-weight: 600;
    color: #333;
}

.d-form-input,
.d-form-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f7f8fa;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.d-form-input:focus,
.d-form-select:focus {
    outline: none;
    border-color: #8ecd4e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(142, 205, 78, 0.18);
}

.d-form-input {
    flex: 1 1 220px;
    max-width: 320px;
}

.d-form-select {
    flex: 0 0 auto;
    min-width: 150px;
}

.d-fee {
    margin: 0;
    padding: 0;
    list-style: none;
}

.d-fee li {
    margin-bottom: 5px;
}

.d-fee .red {
    color: #e4393c;
}

.d-btn-center {
    text-align: center;
    margin: 20px 0 6px;
}

/* 網址搶註 彈窗 iframe（取代 layui layer） */
.d-modal-body {
    padding: 0;
}

.d-modal-iframe {
    width: 100%;
    height: 460px;
    border: 0;
    display: block;
}

/* ---------- 手机端 ---------- */
@media (max-width: 767px) {
    .d-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .d-card-body {
        text-align: left;
    }

    .d-form {
        padding: 20px 16px;
    }

    .d-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .d-form-input,
    .d-form-select {
        max-width: 100%;
        width: 100%;
    }
    .c-info-item {
        flex: 1 1 100%;
    }

    .c-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .c-form-card {
        padding: 22px 20px 26px;
        border-radius: 14px;
    }

    .c-submit {
        width: 100%;
        text-align: center;
    }
}
